Skip to content

Commit

Permalink
feat: resolved gcp auth revoke error
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Jun 22, 2024
1 parent b6cc17d commit 084fc7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ export const identityGcpAuthServiceFactory = ({
}: TRevokeGcpAuthDTO) => {
const identityMembershipOrg = await identityOrgMembershipDAL.findOne({ identityId });
if (!identityMembershipOrg) throw new BadRequestError({ message: "Failed to find identity" });
if (identityMembershipOrg.identity?.authMethod !== IdentityAuthMethod.AWS_AUTH)
if (identityMembershipOrg.identity?.authMethod !== IdentityAuthMethod.GCP_AUTH)
throw new BadRequestError({
message: "The identity does not have aws auth"
message: "The identity does not have gcp auth"
});
const { permission } = await permissionService.getOrgPermission(
actor,
Expand Down

0 comments on commit 084fc7c

Please sign in to comment.