Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3246556
D8700.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
669 B
Referenced Files
None
Subscribers
None
D8700.diff
View Options
diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js
--- a/keyserver/src/creators/message-creator.js
+++ b/keyserver/src/creators/message-creator.js
@@ -185,7 +185,7 @@
creation, target_message)
VALUES ${messageInsertRows}
`;
- const messageInsertPromise = dbQuery(messageInsertQuery);
+ await dbQuery(messageInsertQuery);
const postMessageSendPromise = postMessageSend(
viewer,
@@ -204,7 +204,6 @@
}
await Promise.all([
- messageInsertPromise,
updateRepliesCount(threadsToMessageIndices, newMessageDatas),
viewer.isScriptViewer ? postMessageSendPromise : undefined,
]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 12:38 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495896
Default Alt Text
D8700.diff (669 B)
Attached To
Mode
D8700: [keyserver] await INSERT INTO messages before calling postMessageSend
Attached
Detach File
Event Timeline
Log In to Comment