We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4e691 commit 96c7864Copy full SHA for 96c7864
src/app.controller.ts
@@ -52,13 +52,14 @@ export class AppController {
52
type: AppResult,
53
})
54
@Get('/cleanup')
55
- async cleanup(): Promise<void> {
+ async cleanup(): Promise<AppResult> {
56
await this.emailRecordService.cleanupAllData();
57
await this.smsRecordService.cleanupAllData();
58
await this.captchaService.cleanupAllData();
59
await this.sessionService.cleanupAllData();
60
await this.userService.cleanupAllData();
61
await this.groupService.cleanupAllData();
62
await this.namespaceService.cleanupAllData();
63
+ return { message: 'Cleanup successfully!' };
64
}
65
0 commit comments