デバッグ機構
This commit is contained in:
parent
6d1ce48198
commit
db4fe14316
5 changed files with 37 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue