mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-25 19:17:13 +01:00
Add indexes
This commit is contained in:
parent
d1a18fe266
commit
ea86527c66
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ import db from '../db/mongodb';
|
||||||
|
|
||||||
const Log = db.get<ILog>('logs');
|
const Log = db.get<ILog>('logs');
|
||||||
Log.createIndex('createdAt', { expireAfterSeconds: 3600 * 24 * 3 });
|
Log.createIndex('createdAt', { expireAfterSeconds: 3600 * 24 * 3 });
|
||||||
|
Log.createIndex('level');
|
||||||
|
Log.createIndex('domain');
|
||||||
export default Log;
|
export default Log;
|
||||||
|
|
||||||
export interface ILog {
|
export interface ILog {
|
||||||
|
|
Loading…
Reference in a new issue