@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.
@@ -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: Revision[]): number | null {
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((revision) => Number(revision.id)));
795
+ return Math.max(...revisions.map(Number));
797
796
  }