Skip to content

Commit 96c7864

Browse files
committed
chore: cleanup return message
1 parent 6f4e691 commit 96c7864

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ export class AppController {
5252
type: AppResult,
5353
})
5454
@Get('/cleanup')
55-
async cleanup(): Promise<void> {
55+
async cleanup(): Promise<AppResult> {
5656
await this.emailRecordService.cleanupAllData();
5757
await this.smsRecordService.cleanupAllData();
5858
await this.captchaService.cleanupAllData();
5959
await this.sessionService.cleanupAllData();
6060
await this.userService.cleanupAllData();
6161
await this.groupService.cleanupAllData();
6262
await this.namespaceService.cleanupAllData();
63+
return { message: 'Cleanup successfully!' };
6364
}
6465
}

0 commit comments

Comments
 (0)