mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
Fix bug
This commit is contained in:
parent
8bebbac0eb
commit
66ced98bf5
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@ import * as mongo from 'mongodb';
|
||||||
import db from '../db/mongodb';
|
import db from '../db/mongodb';
|
||||||
|
|
||||||
const Stats = db.get<IStats>('stats');
|
const Stats = db.get<IStats>('stats');
|
||||||
Stats.createIndex({ date: -1 }, { unique: true });
|
Stats.dropIndex({ date: -1 }); // 後方互換性のため
|
||||||
|
Stats.createIndex({ span: -1, date: -1 }, { unique: true });
|
||||||
export default Stats;
|
export default Stats;
|
||||||
|
|
||||||
export interface IStats {
|
export interface IStats {
|
||||||
|
|
Loading…
Reference in a new issue