mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 00:01:14 +00:00
19 lines
442 B
Go
19 lines
442 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/warmbly/warmbly/internal/errx"
|
|
)
|
|
|
|
func (s *userService) CompleteOnboarding(ctx context.Context, userID uuid.UUID, firstName, lastName, referralSource string) *errx.Error {
|
|
if err := s.userRepository.UpdateOnboarding(ctx, userID, firstName, lastName, referralSource); err != nil {
|
|
return errx.InternalError()
|
|
}
|
|
|
|
s.cache.Del(ctx, getUserKey(userID))
|
|
|
|
return nil
|
|
}
|