async getMessages(ctx) { const id = ctx.params.id const nameOfConversation = await ctx.db.Conversation.findById(id) ctx.body = await new Promise((resolve, reject) => { firebaseIndex.fbController.getConversation(nameOfConversation.name, async response => { resolve(response) }) }) }