Update index.ts (#3624)

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-12-15 20:54:34 +09:00 committed by GitHub
parent 6d719063f2
commit 2d62b5c02f

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 });
}