@@ -4,7 +4,6 @@ import { z } from "zod";
4
4
import { prisma } from "~/db.server" ;
5
5
import { createTag , getTagsForRunId , MAX_TAGS_PER_RUN } from "~/models/taskRunTag.server" ;
6
6
import { authenticateApiRequest } from "~/services/apiAuth.server" ;
7
- import { runsDashboard } from "~/services/runsDashboardInstance.server" ;
8
7
9
8
const ParamsSchema = z . object ( {
10
9
runId : z . string ( ) ,
@@ -80,7 +79,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
80
79
}
81
80
}
82
81
83
- const taskRun = await prisma . taskRun . update ( {
82
+ await prisma . taskRun . update ( {
84
83
where : {
85
84
friendlyId : parsedParams . data . runId ,
86
85
runtimeEnvironmentId : authenticationResult . environment . id ,
@@ -95,26 +94,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
95
94
} ,
96
95
} ) ;
97
96
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
-
118
97
return json ( { message : `Successfully set ${ newTags . length } new tags.` } , { status : 200 } ) ;
119
98
} catch ( error ) {
120
99
return json (
0 commit comments