Update Filter License
This commit is contained in:
parent
44302e043a
commit
91b6d7a409
@ -62,7 +62,7 @@ func (u *AuthServiceImpl) AuthenticateUser(ctx context.Context, email, password
|
||||
}
|
||||
var licensePartner entity.PartnerLicense
|
||||
|
||||
if user.PartnerID != nil {
|
||||
if user.PartnerID != nil && *user.PartnerID != 0 {
|
||||
parterLicense, err := u.license.FindByPartnerIDMaxEndDate(ctx, user.PartnerID)
|
||||
if err != nil {
|
||||
logger.ContextLogger(ctx).Error("error when get user license", zap.Error(err))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user