mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 21:58:58 +09:00
Update index.ts (#3624)
This commit is contained in:
parent
85ddabdc65
commit
9ab34c2301
@ -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 });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user