Skip to content

Commit

Permalink
fix: supported versions not being updated (#32220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Apr 16, 2024
1 parent c5640f8 commit 3b58d23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sharp-yaks-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed supported versions not being updated in airgapped environments
4 changes: 2 additions & 2 deletions apps/meteor/app/cloud/server/functions/syncWorkspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 3b58d23

Please sign in to comment.