mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Add missing index
This commit is contained in:
parent
c4b33386dd
commit
60afcf35dd
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ import config from '../config';
|
|||
const User = db.get<IUser>('users');
|
||||
|
||||
User.createIndex('username');
|
||||
User.createIndex('usernameLower');
|
||||
User.createIndex('token');
|
||||
User.createIndex('uri', { sparse: true, unique: true });
|
||||
|
||||
|
|
Loading…
Reference in a new issue