mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复关闭通知
This commit is contained in:
+2
-2
@@ -204,8 +204,8 @@ export default (app: Router) => {
|
||||
const logger: Logger = Container.get('logger');
|
||||
try {
|
||||
const authService = Container.get(AuthService);
|
||||
const data = await authService.updateNotificationMode(req.body);
|
||||
res.send({ code: 200, data });
|
||||
const result = await authService.updateNotificationMode(req.body);
|
||||
res.send(result);
|
||||
} catch (e) {
|
||||
logger.error('🔥 error: %o', e);
|
||||
return next(e);
|
||||
|
||||
Reference in New Issue
Block a user