search: correctly register/export schema/models for mongoMeili

This commit is contained in:
Daniel Avila 2023-03-22 01:31:01 -04:00
parent 8be19f9982
commit a5cf2f9148
6 changed files with 231 additions and 53 deletions

View file

@ -1,4 +1,4 @@
const { Message } = require('./schema/');
const Message = require('./schema/messageSchema');
module.exports = {
Message,
saveMessage: async ({ messageId, conversationId, parentMessageId, sender, text, isCreatedByUser=false, error }) => {