0
0

Update index.ts (#3624)

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-12-15 20:54:34 +09:00 committed by GitHub
parent 85ddabdc65
commit 9ab34c2301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ export default abstract class Chart<T> {
const keys = {
span: -1,
date: -1
} as any;
} as { [key: string]: 1 | -1; };
if (grouped) keys.group = -1;
this.collection.createIndex(keys, { unique: true });
}