Skip to content

Commit 07ae802

Browse files
committed
Fix getTagsForRunId after accidentally breaking it
1 parent 2769951 commit 07ae802

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

apps/webapp/app/models/taskRunTag.server.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ export async function createTag({ tag, projectId }: { tag: string; projectId: st
2525
.then((rows) => rows[0]);
2626
}
2727

28-
export async function getTagsForRunId(
29-
{
30-
friendlyId,
31-
environmentId,
32-
}: {
33-
friendlyId: string;
34-
environmentId: string;
35-
},
36-
db: PrismaClientOrTransaction
37-
) {
38-
const run = await db.taskRun.findFirst({
28+
export async function getTagsForRunId({
29+
friendlyId,
30+
environmentId,
31+
}: {
32+
friendlyId: string;
33+
environmentId: string;
34+
}) {
35+
const run = await prisma.taskRun.findFirst({
3936
where: {
4037
friendlyId,
4138
runtimeEnvironmentId: environmentId,

0 commit comments

Comments
 (0)