mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
🐛 fix: Await saveMessage in abortMiddleware to ensure proper execution (#6248)
This commit is contained in:
parent
d6ab769b80
commit
a53638c481
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ const createAbortController = (req, res, getAbortData, getReqData) => {
|
|||
{ promptTokens, completionTokens },
|
||||
);
|
||||
|
||||
saveMessage(
|
||||
await saveMessage(
|
||||
req,
|
||||
{ ...responseMessage, user },
|
||||
{ context: 'api/server/middleware/abortMiddleware.js' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue