mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
Update index.ts (#3624)
This commit is contained in:
parent
6d719063f2
commit
2d62b5c02f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue