Fix error

This commit is contained in:
syuilo 2018-12-11 20:33:52 +09:00
parent c633827e5e
commit 30c53e9ee0
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

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