File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ import { accessoryAttributes , flattenAttributes } from "@trigger.dev/core/v3" ;
12import type { CreateEventInput } from "../eventRepository/eventRepository.types" ;
23
34export function enrichCreatableEvents ( events : CreateEventInput [ ] ) {
@@ -23,6 +24,30 @@ function enrichStyle(event: CreateEventInput) {
2324 return baseStyle ;
2425 }
2526
27+ if ( event . message === "prisma:client:operation" ) {
28+ const operationName = props [ "name" ] ;
29+
30+ if ( typeof operationName === "string" ) {
31+ return {
32+ ...baseStyle ,
33+ ...flattenAttributes (
34+ {
35+ items : [
36+ {
37+ text : operationName ,
38+ variant : "normal" ,
39+ } ,
40+ ] ,
41+ style : "codepath" ,
42+ } ,
43+ "accessory"
44+ ) ,
45+ } ;
46+ }
47+
48+ return { ...baseStyle } ;
49+ }
50+
2651 // Direct property access and early returns
2752 // GenAI System check
2853 const system = props [ "gen_ai.system" ] ;
You can’t perform that action at this time.
0 commit comments