From dfa5cb567f9bf84b28e41830a16fdf3eafb6be98 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Aug 2018 09:29:46 +0900 Subject: [PATCH] Define new index --- src/models/notification.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/notification.ts b/src/models/notification.ts index 097e3e691..835c89cd5 100644 --- a/src/models/notification.ts +++ b/src/models/notification.ts @@ -5,6 +5,7 @@ import { IUser, pack as packUser } from './user'; import { pack as packNote } from './note'; const Notification = db.get('notifications'); +Notification.createIndex('notifieeId'); export default Notification; export interface INotification {