diff --git a/.changeset/sharp-yaks-turn.md b/.changeset/sharp-yaks-turn.md new file mode 100644 index 000000000000..7c05bf5a3b0e --- /dev/null +++ b/.changeset/sharp-yaks-turn.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixed supported versions not being updated in airgapped environments diff --git a/apps/meteor/app/cloud/server/functions/syncWorkspace/index.ts b/apps/meteor/app/cloud/server/functions/syncWorkspace/index.ts index 4c1d78440648..1fd121cb710c 100644 --- a/apps/meteor/app/cloud/server/functions/syncWorkspace/index.ts +++ b/apps/meteor/app/cloud/server/functions/syncWorkspace/index.ts @@ -13,9 +13,9 @@ import { syncCloudData } from './syncCloudData'; */ export async function syncWorkspace() { try { + await getCachedSupportedVersionsToken.reset(); await announcementSync(); await syncCloudData(); - await getCachedSupportedVersionsToken.reset(); } catch (err) { switch (true) { case err instanceof CloudWorkspaceRegistrationError: @@ -33,8 +33,8 @@ export async function syncWorkspace() { function: 'syncCloudData', }); try { - await legacySyncWorkspace(); await getCachedSupportedVersionsToken.reset(); + await legacySyncWorkspace(); } catch (err) { switch (true) { case err instanceof CloudWorkspaceRegistrationError: