From ac135937556d88dec76f2a222ca099e352ce9b8e Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Jun 2018 01:07:34 +0900 Subject: [PATCH] Revert ":v:" This reverts commit 96ab0e7b4caee288b605ba2799878f89d0e67429. --- src/models/note.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/note.ts b/src/models/note.ts index 4e2fc5d6b..359d95373 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -15,6 +15,8 @@ import Following from './following'; const Note = db.get('notes'); Note.createIndex('uri', { sparse: true, unique: true }); +Note.createIndex('userId'); +Note.createIndex('tags', { sparse: true }); Note.createIndex({ createdAt: -1 });