We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c36a1a commit da6a66eCopy full SHA for da6a66e
apps/webapp/app/v3/services/triggerTask.server.ts
@@ -176,10 +176,12 @@ export class TriggerTaskService extends BaseService {
176
}
177
178
if (body.options?.queue) {
179
- const concurrencyLimit = body.options.queue.concurrencyLimit
180
- ? Math.max(0, body.options.queue.concurrencyLimit)
181
- : null;
182
- const taskQueue = await prisma.taskQueue.upsert({
+ const concurrencyLimit =
+ typeof body.options.queue.concurrencyLimit === "number"
+ ? Math.max(0, body.options.queue.concurrencyLimit)
+ : undefined;
183
+
184
+ const taskQueue = await tx.taskQueue.upsert({
185
where: {
186
runtimeEnvironmentId_name: {
187
runtimeEnvironmentId: environment.id,
0 commit comments