diff --git a/cmd/api-server/main.go b/cmd/api-server/main.go index 0dbbb78..0c0df32 100644 --- a/cmd/api-server/main.go +++ b/cmd/api-server/main.go @@ -30,6 +30,8 @@ func main() { } func run(serviceName string, serviceVersion string) error { + time.Local, _ = time.LoadLocation("UTC") + _ = godotenv.Load(".env") setupLogging() diff --git a/internal/domain/user.go b/internal/domain/user.go index a4675b2..f7ebad4 100644 --- a/internal/domain/user.go +++ b/internal/domain/user.go @@ -31,11 +31,9 @@ func (s *UserService) CreateUser(ctx context.Context, email string, name string, if len(email) == 0 { return nil, errors.New("email is required") } - if len(name) == 0 { return nil, errors.New("name is required") } - if len(password) == 0 { return nil, errors.New("password is required") }