mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Add indexes
This commit is contained in:
parent
f205278dbd
commit
e3069741e8
@ -3,6 +3,8 @@ import db from '../db/mongodb';
|
||||
|
||||
const Log = db.get<ILog>('logs');
|
||||
Log.createIndex('createdAt', { expireAfterSeconds: 3600 * 24 * 3 });
|
||||
Log.createIndex('level');
|
||||
Log.createIndex('domain');
|
||||
export default Log;
|
||||
|
||||
export interface ILog {
|
||||
|
Loading…
Reference in New Issue
Block a user