This commit is contained in:
syuilo
2018-07-30 07:20:27 +09:00
parent 4e6dcd16ac
commit 83d9730d93
33 changed files with 189 additions and 242 deletions

View File

@ -1,5 +1,5 @@
import Notification from '../../../../models/notification';
import event from '../../../../stream';
import { publishUserStream } from '../../../../stream';
import User, { ILocalUser } from '../../../../models/user';
export const meta = {
@ -40,5 +40,5 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
});
// 全ての通知を読みましたよというイベントを発行
event(user._id, 'read_all_notifications');
publishUserStream(user._id, 'read_all_notifications');
});