refactor(backend): remove unnecessary .then

This commit is contained in:
syuilo
2024-10-13 20:32:02 +09:00
parent ff47fef572
commit 5229f5de4d
4 changed files with 10 additions and 18 deletions

View File

@@ -110,8 +110,7 @@ export class AbuseReportService {
reportId: report.id,
report: report,
resolvedAs: ps.resolvedAs,
})
.then();
});
}
return this.abuseUserReportsRepository.findBy({ id: In(reports.map(it => it.id)) })
@@ -148,8 +147,7 @@ export class AbuseReportService {
.log(moderator, 'forwardAbuseReport', {
reportId: report.id,
report: report,
})
.then();
});
}
@bindThis