@kumori/aurora-backend-handler 1.0.80 → 1.0.82

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.80",
3
+ "version": "1.0.82",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -699,7 +699,11 @@ const handleEvent = async (message: WSMessage) => {
699
699
  if (revisionResult.pendingRevisionError) {
700
700
  pendingRevisionErrors.push(revisionResult.pendingRevisionError);
701
701
  }
702
- if (revisionResult.serviceDeploymentErrorEvent) {
702
+ if (
703
+ revisionResult.serviceDeploymentErrorEvent &&
704
+ String(entityId) ===
705
+ String(revisionResult.updatedService?.currentRevision)
706
+ ) {
703
707
  eventHelper.service.publish.deploymentError(
704
708
  revisionResult.serviceDeploymentErrorEvent,
705
709
  );
@@ -1906,12 +1910,15 @@ export const updateUserComplete = (updatedUserData: UserData): User => {
1906
1910
  }
1907
1911
  };
1908
1912
  const resolveServiceStatus = (service: Service): Service => {
1909
- const revisionKey = `${service.tenant}/${service.name}-${service.currentRevision}`;
1910
- const currentRevision = revisionsMap.get(revisionKey);
1913
+ if (service.status?.code === "REMOVING_SERVICE") {
1914
+ return service;
1915
+ }
1911
1916
 
1912
1917
  if (service.error) {
1913
1918
  return service;
1914
1919
  }
1920
+ const revisionKey = `${service.tenant}/${service.name}-${service.currentRevision}`;
1921
+ const currentRevision = revisionsMap.get(revisionKey);
1915
1922
 
1916
1923
  if (!currentRevision) {
1917
1924
  return service;