@@ -62,7 +62,7 @@ export class FinalizeDeploymentService extends BaseService {
6262 data : {
6363 status : "DEPLOYED" ,
6464 deployedAt : new Date ( ) ,
65- imageReference : imageReference ,
65+ imageReference,
6666 } ,
6767 } ) ;
6868
@@ -103,17 +103,17 @@ export class FinalizeDeploymentService extends BaseService {
103103 logger . error ( "Failed to publish WORKER_CREATED event" , { err } ) ;
104104 }
105105
106- if ( deployment . imageReference ) {
106+ if ( finalizedDeployment . imageReference ) {
107107 socketIo . providerNamespace . emit ( "PRE_PULL_DEPLOYMENT" , {
108108 version : "v1" ,
109- imageRef : deployment . imageReference ,
110- shortCode : deployment . shortCode ,
109+ imageRef : finalizedDeployment . imageReference ,
110+ shortCode : finalizedDeployment . shortCode ,
111111 // identifiers
112- deploymentId : deployment . id ,
112+ deploymentId : finalizedDeployment . id ,
113113 envId : authenticatedEnv . id ,
114114 envType : authenticatedEnv . type ,
115115 orgId : authenticatedEnv . organizationId ,
116- projectId : deployment . projectId ,
116+ projectId : finalizedDeployment . projectId ,
117117 } ) ;
118118 }
119119
0 commit comments