hotfix: insert or update with postgres

This commit is contained in:
Julian Krauser 2025-03-24 09:19:11 +01:00
parent 1f5ddc05d2
commit eb4db01b27
11 changed files with 43 additions and 32 deletions

View file

@ -748,7 +748,7 @@ export default abstract class BackupHelper {
.insert()
.into("template_usage")
.values(data?.["template_usage"] ?? [])
.orUpdate(["headerId", "bodyId", "footerId", "headerHeight", "footerHeight"], ["scope"])
.orIgnore()
.execute();
}
private static async setUser(data: { [key: string]: Array<any> }): Promise<void> {