Skip to content

Commit 51bb6c0

Browse files
committed
fix(webapp): bound the queue-metrics seed script list filter
Arrived on main while this branch was in flight; the new lint rule caught it on rebase.
1 parent ec8ad3c commit 51bb6c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/webapp/seed-queue-metrics.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { prisma } from "./app/db.server";
2+
import { boundedIn } from "@trigger.dev/database";
23
import { createOrganization } from "./app/models/organization.server";
34
import { createProject } from "./app/models/project.server";
45
import { ClickHouse } from "@internal/clickhouse";
@@ -786,7 +787,7 @@ async function ensureTaskQueues(
786787
const { count: pruned } = await prisma.taskQueue.deleteMany({
787788
where: {
788789
runtimeEnvironmentId,
789-
name: { notIn: scenario.queues.map((q) => q.name) },
790+
name: { notIn: boundedIn(scenario.queues.map((q) => q.name)) },
790791
},
791792
});
792793
console.log(

0 commit comments

Comments
 (0)