File tree 5 files changed +4
-12
lines changed
5 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 496
496
}
497
497
},
498
498
"UpdateUserPasswordRequest" : {
499
- "required" : [" newPassword " ],
499
+ "required" : [" password " ],
500
500
"type" : " object" ,
501
501
"properties" : {
502
- "newPassword " : {
502
+ "password " : {
503
503
"type" : " string"
504
504
}
505
505
}
Original file line number Diff line number Diff line change @@ -94,17 +94,10 @@ func (k *kernel) userCommandServiceContainer() *userService.UserCommandService {
94
94
MySQLDBHandlerInterface : mysqlDBHandler ,
95
95
}
96
96
97
- queryRepository := & userRepository.UserQueryRepository {
98
- MySQLDBHandlerInterface : mysqlDBHandler ,
99
- }
100
-
101
97
service := & userService.UserCommandService {
102
98
UserCommandRepositoryInterface : & userRepository.UserCommandRepositoryCircuitBreaker {
103
99
UserCommandRepositoryInterface : repository ,
104
100
},
105
- UserQueryRepositoryInterface : & userRepository.UserQueryRepositoryCircuitBreaker {
106
- UserQueryRepositoryInterface : queryRepository ,
107
- },
108
101
}
109
102
110
103
return service
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
// UserCommandService handles the user command service logic
22
22
type UserCommandService struct {
23
23
repository.UserCommandRepositoryInterface
24
- repository.UserQueryRepositoryInterface
25
24
}
26
25
27
26
// CreateUser create a user
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type UpdateUserEmailVerifiedAtRequest struct {
31
31
}
32
32
33
33
type UpdateUserPasswordRequest struct {
34
- NewPassword string `json:"newPassword " validate:"required"`
34
+ Password string `json:"password " validate:"required"`
35
35
}
36
36
37
37
type CreateUserResponse struct {
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ func (controller *UserCommandController) UpdateUserPassword(w http.ResponseWrite
338
338
339
339
err = controller .UserCommandServiceInterface .UpdateUserPassword (context .TODO (), serviceTypes.UpdateUserPassword {
340
340
WalletAddress : walletAddress ,
341
- NewPassword : request .NewPassword ,
341
+ NewPassword : request .Password ,
342
342
})
343
343
if err != nil {
344
344
var httpCode int
You can’t perform that action at this time.
0 commit comments