@@ -62,7 +62,7 @@ export class FinalizeDeploymentService extends BaseService {
62
62
data : {
63
63
status : "DEPLOYED" ,
64
64
deployedAt : new Date ( ) ,
65
- imageReference : imageReference ,
65
+ imageReference,
66
66
} ,
67
67
} ) ;
68
68
@@ -103,17 +103,17 @@ export class FinalizeDeploymentService extends BaseService {
103
103
logger . error ( "Failed to publish WORKER_CREATED event" , { err } ) ;
104
104
}
105
105
106
- if ( deployment . imageReference ) {
106
+ if ( finalizedDeployment . imageReference ) {
107
107
socketIo . providerNamespace . emit ( "PRE_PULL_DEPLOYMENT" , {
108
108
version : "v1" ,
109
- imageRef : deployment . imageReference ,
110
- shortCode : deployment . shortCode ,
109
+ imageRef : finalizedDeployment . imageReference ,
110
+ shortCode : finalizedDeployment . shortCode ,
111
111
// identifiers
112
- deploymentId : deployment . id ,
112
+ deploymentId : finalizedDeployment . id ,
113
113
envId : authenticatedEnv . id ,
114
114
envType : authenticatedEnv . type ,
115
115
orgId : authenticatedEnv . organizationId ,
116
- projectId : deployment . projectId ,
116
+ projectId : finalizedDeployment . projectId ,
117
117
} ) ;
118
118
}
119
119
0 commit comments