Skip to content

Commit cb09bb1

Browse files
committed
fix: bound the notIn status filter in failDeployment
1 parent 8244227 commit cb09bb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/v3/services/failDeployment.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PerformDeploymentAlertsService } from "./alerts/performDeploymentAlerts.server";
22
import { BaseService } from "./baseService.server";
33
import { logger } from "~/services/logger.server";
4-
import { Prisma, type WorkerDeploymentStatus } from "@trigger.dev/database";
4+
import { boundedIn, Prisma, type WorkerDeploymentStatus } from "@trigger.dev/database";
55
import { type FailDeploymentRequestBody } from "@trigger.dev/core/v3/schemas";
66
import { type AuthenticatedEnvironment } from "~/services/apiAuth.server";
77
import { DeploymentService } from "./deployment.server";
@@ -49,7 +49,7 @@ export class FailDeploymentService extends BaseService {
4949
const { count: updatedCount } = await this._prisma.workerDeployment.updateMany({
5050
where: {
5151
id: deployment.id,
52-
status: { notIn: FINAL_DEPLOYMENT_STATUSES },
52+
status: { notIn: boundedIn(FINAL_DEPLOYMENT_STATUSES) },
5353
},
5454
data: {
5555
status: "FAILED",

0 commit comments

Comments
 (0)