fix(server): use insert instead of save
This commit is contained in:
parent
bf1d7e6252
commit
d60dc60bc9
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue