Skip to content
Snippets Groups Projects
Unverified Commit 9ab34c23 authored by Acid Chicken (硫酸鶏)'s avatar Acid Chicken (硫酸鶏) Committed by GitHub
Browse files

Update index.ts (#3624)

parent 85ddabdc
No related branches found
No related tags found
No related merge requests found
......@@ -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 });
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment