0
0
Fork 0

デバッグ機構

This commit is contained in:
Xeltica 2021-10-18 02:28:21 +09:00
parent 6d1ce48198
commit db4fe14316
5 changed files with 37 additions and 19 deletions

View file

@ -19,12 +19,12 @@ export class AdminController {
};
}
@Get('/misshai/error') getMisshaiError(@CurrentUser({ required: true }) user: IUser) {
@Get('/misshai/log') getMisshaiLog(@CurrentUser({ required: true }) user: IUser) {
if (!user.isAdmin) {
throw new BadRequestError('Not an Admin');
}
return Store.getState().misshaiWorkerRecentError;
return Store.getState().misshaiWorkerLog;
}
@OnUndefined(204)