This commit is contained in:
parent
6eff8fde74
commit
c78945436e
20 changed files with 333 additions and 18 deletions
|
@ -16,6 +16,9 @@ import Following from './following';
|
|||
const Note = db.get<INote>('notes');
|
||||
Note.createIndex('uri', { sparse: true, unique: true });
|
||||
Note.createIndex('userId');
|
||||
Note.createIndex({
|
||||
createdAt: -1
|
||||
});
|
||||
export default Note;
|
||||
|
||||
export function isValidText(text: string): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue