@kumori/aurora-backend-handler 1.0.37 → 1.0.38

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.
@@ -370,7 +370,14 @@ export const handleRevisionEvent = ({
370
370
  serviceId,
371
371
  roleMap,
372
372
  );
373
+ const existingRevision = revisionsMap.get(revisionKey);
373
374
  const newRevision = createRevision(entityId, eventData, usedCpu, usedMemory);
375
+ if (
376
+ existingRevision?.schema &&
377
+ Object.keys(existingRevision.schema).length > 0
378
+ ) {
379
+ newRevision.schema = existingRevision.schema;
380
+ }
374
381
 
375
382
  let updatedService: Service | null = null;
376
383
  let updatedEnvironment: Environment | null = null;
@@ -946,4 +953,3 @@ const extractResourceName = (resourcePath: string): string => {
946
953
  }
947
954
  return resourcePath;
948
955
  };
949
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {