mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
fix(server): use insert instead of save
This commit is contained in:
parent
a4c930a94c
commit
281b63c3f0
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