fix browser refresh redirecting to /chat/new (#210)

This commit is contained in:
Dan Orlando 2023-05-07 16:16:12 -07:00 committed by GitHub
parent d7b415837b
commit 3b4ed98c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -3,7 +3,6 @@ const Conversation = require('./schema/convoSchema');
const { getMessages, deleteMessages } = require('./Message');
const getConvo = async (user, conversationId) => {
console.log('getConvo -> userId', user);
try {
return await Conversation.findOne({ user, conversationId }).exec();
} catch (error) {