mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-03 15:06:27 +09:00
Fix error
This commit is contained in:
@ -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 });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user