From 72ab5c143e796c24e2d8aba26da34c12c00cab23 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 4e2fc5d6be..359d953735 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 });