mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 15:45:58 +09:00
parent
96ab0e7b4c
commit
72ab5c143e
@ -15,6 +15,8 @@ import Following from './following';
|
|||||||
|
|
||||||
const Note = db.get<INote>('notes');
|
const Note = db.get<INote>('notes');
|
||||||
Note.createIndex('uri', { sparse: true, unique: true });
|
Note.createIndex('uri', { sparse: true, unique: true });
|
||||||
|
Note.createIndex('userId');
|
||||||
|
Note.createIndex('tags', { sparse: true });
|
||||||
Note.createIndex({
|
Note.createIndex({
|
||||||
createdAt: -1
|
createdAt: -1
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user