Skip to content

Commit 706cd8e

Browse files
committed
fix: quote column names in cleanupExcludeList queries
1 parent 7903d3b commit 706cd8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/libs/data-access-layer/src/old/apps/script_executor_worker/cleanupExcludeList.repo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class CleanupExcludeListRepository {
1313
async addToExcludeList(entityId: string, type: EntityType): Promise<void> {
1414
await this.connection.none(
1515
`
16-
insert into "cleanupExcludeList" (entityid, type)
16+
insert into "cleanupExcludeList" ("entityId", "type")
1717
values ($(entityId), $(type))
18-
on conflict (entityid, type) do nothing
18+
on conflict ("entityId", "type") do nothing
1919
`,
2020
{ entityId, type },
2121
)
@@ -24,7 +24,7 @@ class CleanupExcludeListRepository {
2424
async purgeCleanupExcludeList(type: EntityType): Promise<void> {
2525
await this.connection.none(
2626
`
27-
delete from "cleanupExcludeList" where type = $(type)
27+
delete from "cleanupExcludeList" where "type" = $(type)
2828
`,
2929
{ type },
3030
)

0 commit comments

Comments
 (0)