Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32518556
D9857.1767125987.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
D9857.1767125987.diff
View Options
diff --git a/keyserver/src/updaters/relationship-updaters.js b/keyserver/src/updaters/relationship-updaters.js
--- a/keyserver/src/updaters/relationship-updaters.js
+++ b/keyserver/src/updaters/relationship-updaters.js
@@ -13,6 +13,7 @@
directedStatus,
} from 'lib/types/relationship-types.js';
import { threadTypes } from 'lib/types/thread-types-enum.js';
+import type { NewThreadResponse } from 'lib/types/thread-types.js';
import { updateTypes } from 'lib/types/update-types-enum.js';
import { type UpdateData } from 'lib/types/update-types.js';
import { cartesianProduct } from 'lib/utils/array.js';
@@ -335,7 +336,7 @@
threadIDPerUser[user2] = row.threadID.toString();
}
- const threadCreationPromises = {};
+ const threadCreationPromises: { [string]: Promise<NewThreadResponse> } = {};
for (const userID of request.userIDs) {
if (threadIDPerUser[userID]) {
continue;
@@ -354,8 +355,7 @@
for (const userID in personalThreadPerUser) {
const newThread = personalThreadPerUser[userID];
- threadIDPerUser[userID] =
- newThread.newThreadID ?? newThread.newThreadInfo.id;
+ threadIDPerUser[userID] = newThread.newThreadID;
}
return threadIDPerUser;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 8:19 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5869810
Default Alt Text
D9857.1767125987.diff (1 KB)
Attached To
Mode
D9857: [Flow202][keyserver][skip-ci] [8/x] Address type errors in createPersonalThreads calling createThread
Attached
Detach File
Event Timeline
Log In to Comment