mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 05:35:10 +00:00
fix validatePostUserData (#365)
* fix validatePostUserData * fix validPostUserData part 2 and users/Update
This commit is contained in:
@@ -464,6 +464,10 @@ func (domain *Domain) Read(ctx context.Context, userId string) (*user.Account, e
|
||||
return domain.ReadUserByKey(ctx, generateAccountStoreKey(ctx, userId))
|
||||
}
|
||||
|
||||
func (domain *Domain) SearchByUserId(ctx context.Context, userId string) (*user.Account, error) {
|
||||
return domain.ReadUserByKey(ctx, generateAccountStoreKey(ctx, userId))
|
||||
}
|
||||
|
||||
func (domain *Domain) SearchByUsername(ctx context.Context, username string) (*user.Account, error) {
|
||||
return domain.ReadUserByKey(ctx, generateAccountUsernameStoreKey(ctx, username))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user