mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 22:16:43 -06:00
Add type annotation
This commit is contained in:
parent
ad9b9964fa
commit
7860d97a10
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue