diff --git a/apps/meteor/app/api/server/lib/getServerInfo.ts b/apps/meteor/app/api/server/lib/getServerInfo.ts index bea3ccc6da11..53ba3656babe 100644 --- a/apps/meteor/app/api/server/lib/getServerInfo.ts +++ b/apps/meteor/app/api/server/lib/getServerInfo.ts @@ -7,9 +7,9 @@ import { Info, minimumClientVersions } from '../../../utils/rocketchat.info'; type ServerInfo = { info?: typeof Info; - supportedVersions?: string; + supportedVersions?: { signed: string }; minimumClientVersions: typeof minimumClientVersions; - version: string | undefined; + version: string; }; const removePatchInfo = (version: string): string => version.replace(/(\d+\.\d+).*/, '$1'); @@ -31,7 +31,7 @@ export async function getServerInfo(userId?: string): Promise { minimumClientVersions, ...(supportedVersionsToken.success && supportedVersionsToken.result && { - supportedVersions: supportedVersionsToken.result, + supportedVersions: { signed: supportedVersionsToken.result }, }), }; } diff --git a/packages/rest-typings/src/default/index.ts b/packages/rest-typings/src/default/index.ts index d990fbdc6a29..0be60fc4413b 100644 --- a/packages/rest-typings/src/default/index.ts +++ b/packages/rest-typings/src/default/index.ts @@ -26,7 +26,7 @@ export interface DefaultEndpoints { tag?: string; branch?: string; }; - supportedVersions?: string; + supportedVersions?: { signed: string }; minimumClientVersions: { desktop: string; mobile: string;