Skip to content

Commit

Permalink
export token as signed prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 18, 2023
1 parent 66dc626 commit 9630eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/meteor/app/api/server/lib/getServerInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -31,7 +31,7 @@ export async function getServerInfo(userId?: string): Promise<ServerInfo> {
minimumClientVersions,
...(supportedVersionsToken.success &&
supportedVersionsToken.result && {
supportedVersions: supportedVersionsToken.result,
supportedVersions: { signed: supportedVersionsToken.result },
}),
};
}
2 changes: 1 addition & 1 deletion packages/rest-typings/src/default/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface DefaultEndpoints {
tag?: string;
branch?: string;
};
supportedVersions?: string;
supportedVersions?: { signed: string };
minimumClientVersions: {
desktop: string;
mobile: string;
Expand Down

0 comments on commit 9630eae

Please sign in to comment.