Toggle
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"furtuna-be/internal/common/mycontext"
|
||||
"furtuna-be/internal/entity"
|
||||
"furtuna-be/internal/utils"
|
||||
|
||||
"go.uber.org/zap"
|
||||
|
||||
"furtuna-be/internal/common/errors"
|
||||
@@ -68,7 +67,9 @@ func (u *AuthServiceImpl) AuthenticateUser(ctx context.Context, email, password
|
||||
logger.ContextLogger(ctx).Error("error when get user license", zap.Error(err))
|
||||
return nil, errors.ErrorInternalServer
|
||||
}
|
||||
licensePartner = parterLicense.ToPartnerLicense()
|
||||
if parterLicense != nil {
|
||||
licensePartner = parterLicense.ToPartnerLicense()
|
||||
}
|
||||
}
|
||||
|
||||
return user.ToUserAuthenticate(signedToken, licensePartner), nil
|
||||
|
||||
Reference in New Issue
Block a user