@kumori/aurora-backend-handler 1.0.94 → 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.94",
3
+ "version": "1.0.95",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -763,13 +763,8 @@ const handleEvent = async (message: WSMessage) => {
763
763
  }
764
764
  }
765
765
  if (serviceResult.wasDeployed) {
766
- const statusCode = resolvedService.status?.code;
767
- const isDeletingState =
768
- statusCode === "REMOVING_SERVICE" ||
769
- statusCode === "DELETING" ||
770
- resolvedService.error?.code === "REMOVING_SERVICE";
771
-
772
- if (!isDeletingState) {
766
+ const isBeingDeleted = !!eventData.meta?.deleted;
767
+ if (!isBeingDeleted) {
773
768
  eventHelper.service.publish.deployed(resolvedService);
774
769
  }
775
770
  }