From b4f0824d8ae5dad2a25552d63132462c489004c9 Mon Sep 17 00:00:00 2001 From: Alexander Petkov Date: Mon, 23 Oct 2023 20:41:57 +0300 Subject: [PATCH] src/affiliate: Fix redundant space on ForbiddenException --- apps/api/src/affiliate/affiliate.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/affiliate/affiliate.controller.ts b/apps/api/src/affiliate/affiliate.controller.ts index cec437a6c..dc901d4b9 100644 --- a/apps/api/src/affiliate/affiliate.controller.ts +++ b/apps/api/src/affiliate/affiliate.controller.ts @@ -45,7 +45,7 @@ export class AffiliateController { @Body() { newStatus }: AffiliateStatusUpdateDto, @AuthenticatedUser() user: KeycloakTokenParsed, ) { - if (!isAdmin(user)) throw new ForbiddenException('Must be an admin ') + if (!isAdmin(user)) throw new ForbiddenException('Must be an admin') const affiliate = await this.affiliateService.findOneById(affiliateId) if (!affiliate) throw new NotFoundException('Affiliate not found')