File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/webapp/app/v3/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 99import { BackgroundWorkerId } from "@trigger.dev/core/v3/isomorphic" ;
1010import type { BackgroundWorker , TaskQueue , TaskQueueType } from "@trigger.dev/database" ;
1111import cronstrue from "cronstrue" ;
12- import { Prisma , PrismaClientOrTransaction } from "~/db.server" ;
12+ import { $transaction , Prisma , PrismaClientOrTransaction } from "~/db.server" ;
1313import { sanitizeQueueName } from "~/models/taskQueue.server" ;
1414import { AuthenticatedEnvironment } from "~/services/apiAuth.server" ;
1515import { logger } from "~/services/logger.server" ;
@@ -788,7 +788,7 @@ async function createWorkerPrompts(
788788
789789 // Wrap label removal + version creation in a transaction so labels
790790 // aren't stripped if the create fails (e.g. concurrent deploy race).
791- await prisma . $transaction ( async ( tx ) => {
791+ await $transaction ( prisma , async ( tx ) => {
792792 // Remove "latest" label from all existing versions
793793 if ( latestVersion ) {
794794 await tx . $executeRaw `
You can’t perform that action at this time.
0 commit comments