diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 01:07:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 01:07:34 +0900 |
| commit | 72ab5c143e796c24e2d8aba26da34c12c00cab23 (patch) | |
| tree | ce8e49ff2c70c80fd5a234493a0c85e157c9d546 /src/models | |
| parent | :v: (diff) | |
| download | sharkey-72ab5c143e796c24e2d8aba26da34c12c00cab23.tar.gz sharkey-72ab5c143e796c24e2d8aba26da34c12c00cab23.tar.bz2 sharkey-72ab5c143e796c24e2d8aba26da34c12c00cab23.zip | |
Revert ":v:"
This reverts commit 96ab0e7b4caee288b605ba2799878f89d0e67429.
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/note.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<INote>('notes'); Note.createIndex('uri', { sparse: true, unique: true }); +Note.createIndex('userId'); +Note.createIndex('tags', { sparse: true }); Note.createIndex({ createdAt: -1 }); |