Page MenuHomePhabricator

D11076.id37098.diff
No OneTemporary

D11076.id37098.diff

diff --git a/keyserver/src/database/migration-config.js b/keyserver/src/database/migration-config.js
--- a/keyserver/src/database/migration-config.js
+++ b/keyserver/src/database/migration-config.js
@@ -23,6 +23,7 @@
createPickledOlmAccount,
publishPrekeysToIdentity,
} from '../utils/olm-utils.js';
+import { synchronizeInviteLinksWithBlobs } from '../utils/synchronizeInviteLinksWithBlobs.js';
const botViewer = createScriptViewer(bots.commbot.userID);
@@ -728,6 +729,7 @@
);
},
],
+ [57, synchronizeInviteLinksWithBlobs],
]);
const newDatabaseVersion: number = Math.max(...migrations.keys());
diff --git a/keyserver/src/utils/synchronizeInviteLinksWithBlobs.js b/keyserver/src/utils/synchronizeInviteLinksWithBlobs.js
--- a/keyserver/src/utils/synchronizeInviteLinksWithBlobs.js
+++ b/keyserver/src/utils/synchronizeInviteLinksWithBlobs.js
@@ -38,7 +38,11 @@
})(),
);
}
- await Promise.all(promises);
+ try {
+ await Promise.all(promises);
+ } catch (e) {
+ console.error('Invite links - blobs synchronization failed');
+ }
}
export { synchronizeInviteLinksWithBlobs };

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 6:50 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591386
Default Alt Text
D11076.id37098.diff (1 KB)

Event Timeline