修复关闭通知

This commit is contained in:
hanhh
2021-09-18 02:09:06 +08:00
parent 0a9e9e972d
commit 6c87634bb3
5 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -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);