forked from mirror/misskey
fix(server): use insert instead of save
This commit is contained in:
parent
bf1d7e6252
commit
d60dc60bc9
@ -315,11 +315,11 @@ export default abstract class Chart<T extends Record<string, any>> {
|
||||
if (currentLog != null) return currentLog;
|
||||
|
||||
// 新規ログ挿入
|
||||
log = await this.repository.save({
|
||||
log = await this.repository.insert({
|
||||
group: group,
|
||||
date: date,
|
||||
...Chart.convertObjectToFlattenColumns(data)
|
||||
});
|
||||
}).then(x => this.repository.findOneOrFail(x.identifiers[0]));
|
||||
|
||||
logger.info(`${this.name + (group ? `:${group}` : '')}: New commit created`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user