File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed
apps/webapp/app/v3/models Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,18 @@ export type CurrentWorkerDeployment = Prettify<
9
9
> ;
10
10
11
11
type WorkerDeploymentWithWorkerTasks = Prisma . WorkerDeploymentGetPayload < {
12
- include : {
12
+ select : {
13
+ id : true ;
14
+ imageReference : true ;
15
+ version : true ;
13
16
worker : {
14
- include : {
17
+ select : {
18
+ id : true ;
19
+ friendlyId : true ;
20
+ version : true ;
21
+ sdkVersion : true ;
22
+ cliVersion : true ;
23
+ supportsLazyAttempts : true ;
15
24
tasks : true ;
16
25
} ;
17
26
} ;
@@ -26,11 +35,20 @@ export async function findCurrentWorkerDeployment(
26
35
environmentId,
27
36
label : CURRENT_DEPLOYMENT_LABEL ,
28
37
} ,
29
- include : {
38
+ select : {
30
39
deployment : {
31
- include : {
40
+ select : {
41
+ id : true ,
42
+ imageReference : true ,
43
+ version : true ,
32
44
worker : {
33
- include : {
45
+ select : {
46
+ id : true ,
47
+ friendlyId : true ,
48
+ version : true ,
49
+ sdkVersion : true ,
50
+ cliVersion : true ,
51
+ supportsLazyAttempts : true ,
34
52
tasks : true ,
35
53
} ,
36
54
} ,
@@ -44,7 +62,10 @@ export async function findCurrentWorkerDeployment(
44
62
45
63
export async function findCurrentWorkerFromEnvironment (
46
64
environment : Pick < AuthenticatedEnvironment , "id" | "type" >
47
- ) : Promise < BackgroundWorker | null > {
65
+ ) : Promise < Pick <
66
+ BackgroundWorker ,
67
+ "id" | "friendlyId" | "version" | "sdkVersion" | "cliVersion" | "supportsLazyAttempts"
68
+ > | null > {
48
69
if ( environment . type === "DEVELOPMENT" ) {
49
70
const latestDevWorker = await prisma . backgroundWorker . findFirst ( {
50
71
where : {
You can’t perform that action at this time.
0 commit comments