Skip to content

Commit faae3f0

Browse files
authored
fix: update addon mutation sql params (#312)
1 parent 60ace7f commit faae3f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/schema/ticketAddons/helpers/createUpdateAddonMutationHelpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const priceHelpers = {
8787
prices.map(
8888
(p) => sql`(${p.priceId}::uuid, ${p.value_in_cents}::int)`,
8989
),
90-
",",
90+
sql.raw(","),
9191
)}
9292
) AS tmp (price_id, value_in_cents)
9393
WHERE ${pricesSchema}.${sql.raw(pricesSchema.id.name)} = tmp.price_id
@@ -263,7 +263,7 @@ const ticketHelpers = {
263263
tickets.map(
264264
(t) => sql`(${t.ticketId}::uuid, ${t.orderDisplay}::int)`,
265265
),
266-
",",
266+
sql.raw(","),
267267
)}
268268
) AS tmp (ticket_id, order_display)
269269
WHERE ${ticketAddonsSchema}.${sql.raw(
@@ -347,7 +347,7 @@ const constraintHelpers = {
347347
(c) =>
348348
sql`(${c.id}::uuid, ${c.relatedAddonId}::uuid, ${c.constraintType}::text)`,
349349
),
350-
",",
350+
sql.raw(","),
351351
)}
352352
) AS tmp (id, related_addon_id, constraint_type)
353353
WHERE

0 commit comments

Comments
 (0)