fix(server): use insert instead of save

This commit is contained in:
syuilo 2021-08-15 22:10:05 +09:00
parent bf1d7e6252
commit d60dc60bc9

View file

@ -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`);