mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Better index
This commit is contained in:
parent
a22f657c0f
commit
412f338bad
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
import db from '../db/mongodb';
|
||||
|
||||
const Emoji = db.get<IEmoji>('emoji');
|
||||
|
||||
Emoji.createIndex('name');
|
||||
Emoji.createIndex('host');
|
||||
Emoji.createIndex(['name', 'host'], { unique: true });
|
||||
|
||||
export default Emoji;
|
||||
|
|
Loading…
Add table
Reference in a new issue