@kumori/aurora-backend-handler 1.0.93 → 1.0.95

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -762,9 +762,12 @@ const handleEvent = async (message: WSMessage) => {
762
762
  pendingProjects.push(serviceResult.pendingProject);
763
763
  }
764
764
  }
765
- // if (serviceResult.wasDeployed ) {
766
- // eventHelper.service.publish.deployed(resolvedService);
767
- // }
765
+ if (serviceResult.wasDeployed) {
766
+ const isBeingDeleted = !!eventData.meta?.deleted;
767
+ if (!isBeingDeleted) {
768
+ eventHelper.service.publish.deployed(resolvedService);
769
+ }
770
+ }
768
771
  const serviceState = eventData.status?.state?.code;
769
772
  if (serviceState === "SERVICE_READY") {
770
773
  const serviceKey = `${parentParts.tenant}/${entityId}`;
@@ -1301,7 +1304,10 @@ const handleOperationSuccess = (operation: PendingOperation, response: any) => {
1301
1304
  svcSuccessResult.serviceId,
1302
1305
  svcSuccessResult.updatedService,
1303
1306
  );
1304
- if (svcSuccessResult.eventType === "deployed" || operation.action !== "DELETE") {
1307
+ if (
1308
+ svcSuccessResult.eventType === "deployed" ||
1309
+ operation.action !== "DELETE"
1310
+ ) {
1305
1311
  eventHelper.service.publish.deployed(svcSuccessResult.updatedService);
1306
1312
  } else if (svcSuccessResult.eventType === "updated") {
1307
1313
  eventHelper.service.publish.updated(svcSuccessResult.updatedService);