@kumori/aurora-backend-handler 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/websocket-manager.ts +8 -5
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -683,9 +683,13 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
683
683
|
if (revisionResult.roles.length > 0) {
|
|
684
684
|
roleMap.set(revisionResult.serviceId, revisionResult.roles);
|
|
685
685
|
}
|
|
686
|
+
|
|
687
|
+
let resolvedRevisionService: Service | null = null;
|
|
686
688
|
if (revisionResult.updatedService) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
+
resolvedRevisionService = resolveServiceStatus(
|
|
690
|
+
revisionResult.updatedService,
|
|
691
|
+
);
|
|
692
|
+
servicesMap.set(revisionResult.serviceId, resolvedRevisionService);
|
|
689
693
|
}
|
|
690
694
|
if (revisionResult.updatedEnvironment) {
|
|
691
695
|
const envId = revisionResult.updatedService?.environment;
|
|
@@ -701,12 +705,11 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
701
705
|
}
|
|
702
706
|
if (
|
|
703
707
|
revisionResult.serviceDeploymentErrorEvent &&
|
|
708
|
+
resolvedRevisionService &&
|
|
704
709
|
String(entityId) ===
|
|
705
710
|
String(revisionResult.updatedService?.currentRevision)
|
|
706
711
|
) {
|
|
707
|
-
eventHelper.service.publish.deploymentError(
|
|
708
|
-
revisionResult.serviceDeploymentErrorEvent,
|
|
709
|
-
);
|
|
712
|
+
eventHelper.service.publish.deploymentError(resolvedRevisionService);
|
|
710
713
|
}
|
|
711
714
|
if (
|
|
712
715
|
revisionResult.shouldFetchChannels &&
|