@kumori/aurora-backend-handler 1.0.39 → 1.0.41
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/api/service-api-service.ts +2 -3
- package/api/user-api-service.ts +233 -203
- package/helpers/link-helper.ts +0 -3
- package/helpers/revision-helper.ts +272 -267
- package/helpers/service-helper.ts +189 -80
- package/package.json +2 -2
- package/websocket-manager.ts +13 -36
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
makeGlobalWebSocketRequest,
|
|
8
8
|
} from "../websocket-manager";
|
|
9
9
|
import { Link, Notification, Service } from "@kumori/aurora-interfaces";
|
|
10
|
-
import { Revision } from "@kumori/aurora-interfaces/interfaces/revision-interface";
|
|
11
10
|
let pendingLinks = new Map<string, Link[]>();
|
|
12
11
|
/**
|
|
13
12
|
* Function to deploy a service
|
|
@@ -788,10 +787,10 @@ export const changeRevision = async (data: Service, token: string) => {
|
|
|
788
787
|
eventHelper.notification.publish.creation(notification);
|
|
789
788
|
}
|
|
790
789
|
};
|
|
791
|
-
function getLatestRevision(revisions:
|
|
790
|
+
function getLatestRevision(revisions: string[]): number | null {
|
|
792
791
|
if (!revisions || revisions.length === 0) {
|
|
793
792
|
return null;
|
|
794
793
|
}
|
|
795
794
|
|
|
796
|
-
return Math.max(...revisions.map(
|
|
795
|
+
return Math.max(...revisions.map(Number));
|
|
797
796
|
}
|