@@ -43,7 +43,7 @@ export interface NotificationModel extends Model<NotificationDocument> {
}
export default (crowi: Crowi) => {
- const notificationEvent = crowi.event('Notification');
+ const notificationEvent = crowi.event('notification');
const notificationSchema = new Schema<NotificationDocument, NotificationModel>({
user: {
@@ -12,7 +12,8 @@ class NortificationService {
this.notificationEvent = crowi.event('notification');
// init
- this.notificationEvent.on('update', this.notificationEvent.onUpdate);
+ // comments
+ this.notificationEvent.on('update', this.notificationEvent.onUpdateComment);