Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Oct 31, 2023
1 parent ecd5e6b commit 2ba809c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/servers/supportedVersions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ export async function readBuiltinSupportedVersions(): Promise<SupportedVersions
}
}

const getUniqueId = async (serverUrl: string): Promise<string> => {
const response = await fetch(
`${serverUrl}/api/v1/settings.public?query={"_id": "uniqueID"}`
);
const result = await response.json();
return result?.settings?.[0]?.value;
};

const getCloudInfo = (
serverDomain: string,
uniqueID: string
Expand Down Expand Up @@ -395,14 +403,6 @@ const checkSupportedVersion = async (serverUrl: string): Promise<void> => {
dispatch({ type: SUPPORTED_VERSION_DIALOG_OPEN });
};

const getUniqueId = async (serverUrl: string): Promise<string> => {
const response = await fetch(
`${serverUrl}/api/v1/settings.public?query={"_id": "uniqueID"}`
);
const result = await response.json();
return result?.settings?.[0]?.value;
};

export function checkSupportedVersionServers(): void {
listen(WEBVIEW_READY, async (action) => {
updateSupportedVersionsData(action.payload.url);
Expand Down

0 comments on commit 2ba809c

Please sign in to comment.