Update Partner

This commit is contained in:
aditya.siregar
2024-08-15 23:13:33 +07:00
parent 5907802908
commit 6fabd843d2
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -73,7 +73,8 @@ func (u *AuthServiceImpl) AuthenticateUser(ctx context.Context, email, password
}
licensePartner = partnerLicense.ToPartnerLicense()
if licensePartner.LicenseStatus == "EXPIRED" {
if licensePartner.LicenseStatus == "EXPIRED"
|| licensePartner.LicenseStatus == "INACTIVE" {
return nil, errors.ErrorInvalidLicense
}
}