summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-14 09:15:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-14 09:15:43 +0900
commit06461bb9ee6d579fceaaa700ed0b4167f3e00058 (patch)
tree4283e8d69aa8c3db621f4e12864f77a8314b8690 /src/models
parentDisable prev/next (diff)
downloadsharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.tar.gz
sharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.tar.bz2
sharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.zip
NoteのuserIdに対してインデックスを張るように
Diffstat (limited to 'src/models')
-rw-r--r--src/models/note.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/models/note.ts b/src/models/note.ts
index 337711bcfa..f42bb2a49d 100644
--- a/src/models/note.ts
+++ b/src/models/note.ts
@@ -15,9 +15,8 @@ import Notification, { deleteNotification } from './notification';
import Following from './following';
const Note = db.get<INote>('notes');
-
Note.createIndex('uri', { sparse: true, unique: true });
-
+Note.createIndex('userId');
export default Note;
export function isValidText(text: string): boolean {