Skip to content

Commit

Permalink
feat(api): add log when redeem successful
Browse files Browse the repository at this point in the history
Co-authored-by: Vivian Plasencia <v.pcalana@gmail.com>
  • Loading branch information
waddaboo and vplasencia authored Dec 5, 2024
1 parent b97c23d commit a9281cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/api/src/app/invites/invites.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export class InvitesService {

invite.isRedeemed = true

return this.inviteRepository.save(invite)
await this.inviteRepository.save(invite)

Logger.log(`InvitesService: invite '${invite.code}' has been redeemed`)

return invite
}

/**
Expand Down

0 comments on commit a9281cd

Please sign in to comment.