Page MenuHomePhabricator

D11076.diff
No OneTemporary

D11076.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
Sun, Nov 24, 12:39 AM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573288
Default Alt Text
D11076.diff (1 KB)

Event Timeline