hotfix: insert or update with postgres
This commit is contained in:
parent
1f5ddc05d2
commit
eb4db01b27
11 changed files with 43 additions and 32 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue