Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33360562
D13767.1768942959.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13767.1768942959.diff
View Options
diff --git a/keyserver/src/utils/synchronize-invite-links-with-blobs.js b/keyserver/src/utils/synchronize-invite-links-with-blobs.js
--- a/keyserver/src/utils/synchronize-invite-links-with-blobs.js
+++ b/keyserver/src/utils/synchronize-invite-links-with-blobs.js
@@ -2,7 +2,6 @@
import uuid from 'uuid';
-import { inviteLinkBlobHash } from 'lib/shared/invite-links.js';
import type { InviteLinkWithHolder } from 'lib/types/link-types.js';
import {
@@ -21,17 +20,12 @@
const isHolderPresent = !!link.blobHolder;
const holder = link.blobHolder ?? uuid.v4();
if (isHolderPresent) {
- const blobFetchResult = await getInviteLinkBlob(
- inviteLinkBlobHash(link.name),
- );
+ const blobFetchResult = await getInviteLinkBlob(link.name);
if (blobFetchResult.found) {
return;
}
}
- const uploadResult = await uploadInviteLinkBlob(
- inviteLinkBlobHash(link.name),
- holder,
- );
+ const uploadResult = await uploadInviteLinkBlob(link.name, holder);
if (uploadResult.success && !isHolderPresent) {
await setLinkHolder(link.name, holder);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 9:02 PM (6 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5964139
Default Alt Text
D13767.1768942959.diff (1 KB)
Attached To
Mode
D13767: [keyserver] Fix synchronizing invite links with blobs
Attached
Detach File
Event Timeline
Log In to Comment