get convos endpoint

This commit is contained in:
Danny Avila 2023-02-06 15:17:54 -05:00
parent c821d1eee5
commit 2869638cc0
6 changed files with 50 additions and 5 deletions

View file

@ -38,5 +38,8 @@ module.exports = {
{ $set: update },
{ new: true, upsert: true }
).exec();
}
},
getConversations: async () => {
return await Conversation.find({}).exec();
},
};