Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3375197
D11076.id37098.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11076.id37098.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11076: [keyserver] Create invite link blobs in a migration
Attached
Detach File
Event Timeline
Log In to Comment