id type change

This commit is contained in:
nquidox 2026-03-06 19:07:33 +03:00
parent 520f0e6ec7
commit 11ff61f561
3 changed files with 7 additions and 7 deletions

View file

@ -18,9 +18,9 @@ func newService(repo Repository, utils utils.Utils) *service {
}
}
func (s *service) GetUserId(ctx context.Context, userUuid string) (string, error) {
func (s *service) GetUserId(ctx context.Context, userUuid string) (int64, error) {
if userUuid == "" {
return "", errors.New("user uuid is empty")
return 0, errors.New("user uuid is empty")
}
return s.repo.getUserId(ctx, userUuid)