mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-19 03:52:52 +09:00
Add type annotation
This commit is contained in:
parent
d1f671f436
commit
8b9bb8ec0c
@ -2,7 +2,7 @@ import * as mongo from 'mongodb';
|
||||
import db from '../db/mongodb';
|
||||
|
||||
const Stats = db.get<IStats>('stats');
|
||||
Stats.dropIndex({ date: -1 }); // 後方互換性のため
|
||||
Stats.dropIndex({ date: -1 } as any); // 後方互換性のため
|
||||
Stats.createIndex({ span: -1, date: -1 }, { unique: true });
|
||||
export default Stats;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user