From 546999625e5a3b09409aa75dd5b873da2194a0d0 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 {