Skip to content

Commit f43df01

Browse files
committed
fix(mollifier): extend MollifierEvaluateGate input to carry orgFeatureFlags
The gate's `GateInputs` now requires `orgFeatureFlags`, but the surface type used by the trigger service was still the pre-org-scope shape, so the default evaluator wasn't assignable and the call site couldn't pass the flag overrides.
1 parent ee03533 commit f43df01

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/webapp/app/runEngine/services/triggerTask.server.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ import { serialiseSnapshot, type MollifierBuffer } from "@trigger.dev/redis-work
5050
import { QueueSizeLimitExceededError, ServiceValidationError } from "~/v3/services/common.server";
5151

5252
export type MollifierEvaluateGate = (
53-
inputs: { envId: string; orgId: string; taskId: string },
53+
inputs: {
54+
envId: string;
55+
orgId: string;
56+
taskId: string;
57+
orgFeatureFlags: Record<string, unknown> | null;
58+
},
5459
) => Promise<GateOutcome>;
5560

5661
export type MollifierGetBuffer = () => MollifierBuffer | null;

0 commit comments

Comments
 (0)