@kumori/aurora-backend-handler 1.1.74 → 1.1.75
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.
|
@@ -697,7 +697,8 @@ export const processRevisionData = (
|
|
|
697
697
|
"parameters" in schema
|
|
698
698
|
) {
|
|
699
699
|
const revisionId: string = revisionData.revision;
|
|
700
|
-
const
|
|
700
|
+
const [tenantId, serviceName] = serviceId.split('/');
|
|
701
|
+
const revisionKey = `/tenant/${tenantId}/service/${serviceName}/revision/${revisionId}`;
|
|
701
702
|
const existing = revisionsMap.get(revisionKey);
|
|
702
703
|
if (existing) {
|
|
703
704
|
console.log("DEBUG: Updating existing revision in revisionsMap", revisionKey, existing);
|
|
@@ -188,7 +188,7 @@ export const handleServiceEvent = ({
|
|
|
188
188
|
}: HandleServiceEventParams): HandleServiceEventResult => {
|
|
189
189
|
const serviceFullKey = `${parentParts.tenant}/${entityId}`;
|
|
190
190
|
const serviceTenantId = parentParts.tenant;
|
|
191
|
-
const currentRevisionKey = `${eventData.id.parent.name}/service/${entityId}/revision/${eventData.status.revision}`;
|
|
191
|
+
const currentRevisionKey = `${eventData.id.parent.name}/service/${entityId}/revision/${eventData.spec.ctstamp || eventData.status.revision}`;
|
|
192
192
|
const currentRevision = revisionsMap.get(currentRevisionKey);
|
|
193
193
|
|
|
194
194
|
const projectLabel = eventData.meta?.labels?.project;
|