Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async reportRedemptionCode(code: CheckCodeDTO, me: User): Promise<ShowMessageDTO> {
- const findCode = await this.redemptionCodeRepo.findOne({
- where: {
- redemptionCode: code.redemptionCode,
- },
- });
- findCode.reportedCode = true;
- findCode.reportedBy = me.username;
- await this.redemptionCodeRepo.save(findCode);
- return { message: 'success' };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement