mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
Update index.ts (#3624)
This commit is contained in:
parent
6d719063f2
commit
2d62b5c02f
@ -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