Skip to content
Snippets Groups Projects
Commit c32385b6 authored by syuilo's avatar syuilo
Browse files

Add missing index

parent c3f2cea0
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ import config from '../config'; ...@@ -11,6 +11,7 @@ import config from '../config';
const User = db.get<IUser>('users'); const User = db.get<IUser>('users');
User.createIndex('username'); User.createIndex('username');
User.createIndex('usernameLower');
User.createIndex('token'); User.createIndex('token');
User.createIndex('uri', { sparse: true, unique: true }); User.createIndex('uri', { sparse: true, unique: true });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment