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;
|
if (currentLog != null) return currentLog;
|
||||||
|
|
||||||
// 新規ログ挿入
|
// 新規ログ挿入
|
||||||
log = await this.repository.save({
|
log = await this.repository.insert({
|
||||||
group: group,
|
group: group,
|
||||||
date: date,
|
date: date,
|
||||||
...Chart.convertObjectToFlattenColumns(data)
|
...Chart.convertObjectToFlattenColumns(data)
|
||||||
});
|
}).then(x => this.repository.findOneOrFail(x.identifiers[0]));
|
||||||
|
|
||||||
logger.info(`${this.name + (group ? `:${group}` : '')}: New commit created`);
|
logger.info(`${this.name + (group ? `:${group}` : '')}: New commit created`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue