From 40ea7415292f9e05fb46f1e26e2d403cca023b5e Mon Sep 17 00:00:00 2001
From: Devin Alvaro <devin.alvaro@gmail.com>
Date: Wed, 22 Nov 2017 11:58:48 +0700
Subject: [PATCH] Add ChatData to module.exports

---
 mongoose.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mongoose.js b/mongoose.js
index 781be29..1cc5d03 100644
--- a/mongoose.js
+++ b/mongoose.js
@@ -28,6 +28,7 @@ class ChatData {
         if (err) {
           console.error(err)
         }
+
         if (!done) {
           var chat = new this.ChatModel({
             participant_ids: participantIds,
@@ -61,3 +62,5 @@ class ChatData {
     })
   }
 }
+
+module.exports = ChatData
-- 
GitLab