mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
fix: migrate old schema to new
This commit is contained in:
parent
0fa19bb6ad
commit
4fd05e15b4
6 changed files with 108 additions and 42 deletions
|
|
@ -64,7 +64,7 @@ module.exports = {
|
|||
},
|
||||
deleteMessagesSince: async ({ messageId, conversationId }) => {
|
||||
try {
|
||||
message = await Message.findOne({ messageId }).exec()
|
||||
const message = await Message.findOne({ messageId }).exec()
|
||||
|
||||
if (message)
|
||||
return await Message.find({ conversationId }).deleteMany({ createdAt: { $gt: message.createdAt } }).exec();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue