@@ -4,7 +4,6 @@ import { z } from "zod";
44import { prisma } from "~/db.server" ;
55import { createTag , getTagsForRunId , MAX_TAGS_PER_RUN } from "~/models/taskRunTag.server" ;
66import { authenticateApiRequest } from "~/services/apiAuth.server" ;
7- import { runsDashboard } from "~/services/runsDashboardInstance.server" ;
87
98const ParamsSchema = z . object ( {
109 runId : z . string ( ) ,
@@ -80,7 +79,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
8079 }
8180 }
8281
83- const taskRun = await prisma . taskRun . update ( {
82+ await prisma . taskRun . update ( {
8483 where : {
8584 friendlyId : parsedParams . data . runId ,
8685 runtimeEnvironmentId : authenticationResult . environment . id ,
@@ -95,26 +94,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
9594 } ,
9695 } ) ;
9796
98- runsDashboard . emit . runTagsUpdated ( {
99- time : new Date ( ) ,
100- run : {
101- id : taskRun . id ,
102- tags : taskRun . runTags ,
103- status : taskRun . status ,
104- updatedAt : taskRun . updatedAt ,
105- createdAt : taskRun . createdAt ,
106- } ,
107- organization : {
108- id : authenticationResult . environment . organizationId ,
109- } ,
110- project : {
111- id : authenticationResult . environment . projectId ,
112- } ,
113- environment : {
114- id : authenticationResult . environment . id ,
115- } ,
116- } ) ;
117-
11897 return json ( { message : `Successfully set ${ newTags . length } new tags.` } , { status : 200 } ) ;
11998 } catch ( error ) {
12099 return json (
0 commit comments