Skip to content

Commit

Permalink
src/affiliate: Fix redundant space on ForbiddenException
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Oct 23, 2023
1 parent ca85225 commit b4f0824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/affiliate/affiliate.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b4f0824

Please sign in to comment.