We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdb0df commit feea2e3Copy full SHA for feea2e3
1 file changed
apps/sim/app/api/workspaces/[id]/environment/route.ts
@@ -104,8 +104,6 @@ export const PUT = withRouteHandler(
104
).then((entries) => Object.fromEntries(entries))
105
106
const { existingEncrypted, merged } = await db.transaction(async (tx) => {
107
- // Advisory lock serialises all writes for this workspaceId, including concurrent
108
- // first-inserts where no row exists yet and FOR UPDATE would acquire nothing.
109
await tx.execute(sql`SELECT pg_advisory_xact_lock(hashtext(${workspaceId}))`)
110
111
const [existingRow] = await tx
0 commit comments