1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00

Add missing index

This commit is contained in:
syuilo 2018-04-12 02:53:48 +09:00
parent c3f2cea0e6
commit c32385b616

View File

@ -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 });