tests scrolling to top, show/hide templates

This commit is contained in:
Daniel Avila 2023-02-11 11:37:20 -05:00
parent 5af5a97d8f
commit 7dd4e78bbf
11 changed files with 101 additions and 29 deletions

View file

@ -56,7 +56,7 @@ module.exports = {
return { message: 'Error updating conversation' };
}
},
getConvos: async () => await Conversation.find({}).exec(),
getConvos: async () => await Conversation.find({}).sort({ created: -1 }).exec(),
deleteConvos: async (filter) => {
let deleteCount = await Conversation.deleteMany(filter).exec();