From 06461bb9ee6d579fceaaa700ed0b4167f3e00058 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 14 May 2018 09:15:43 +0900 Subject: [PATCH] =?UTF-8?q?Note=E3=81=AEuserId=E3=81=AB=E5=AF=BE=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=82=A4=E3=83=B3=E3=83=87=E3=83=83=E3=82=AF=E3=82=B9?= =?UTF-8?q?=E3=82=92=E5=BC=B5=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/note.ts | 3 +-- 1 file changed, 1 insertion(+), 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('notes'); - Note.createIndex('uri', { sparse: true, unique: true }); - +Note.createIndex('userId'); export default Note; export function isValidText(text: string): boolean {