Update Filter License

This commit is contained in:
aditya.siregar 2024-08-02 18:49:49 +07:00
parent 44302e043a
commit 91b6d7a409

View File

@ -62,7 +62,7 @@ func (u *AuthServiceImpl) AuthenticateUser(ctx context.Context, email, password
} }
var licensePartner entity.PartnerLicense var licensePartner entity.PartnerLicense
if user.PartnerID != nil { if user.PartnerID != nil && *user.PartnerID != 0 {
parterLicense, err := u.license.FindByPartnerIDMaxEndDate(ctx, user.PartnerID) parterLicense, err := u.license.FindByPartnerIDMaxEndDate(ctx, user.PartnerID)
if err != nil { if err != nil {
logger.ContextLogger(ctx).Error("error when get user license", zap.Error(err)) logger.ContextLogger(ctx).Error("error when get user license", zap.Error(err))