From 054219c36f15b224690b4a54debd3731203fa966 Mon Sep 17 00:00:00 2001
From: eeeeeta <eeeeeta@users.noreply.github.com>
Date: Wed, 30 May 2018 19:32:17 +0100
Subject: [PATCH] return all the this.store.Insert()s!

---
 src/bot.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bot.ts b/src/bot.ts
index 64674d0..62ed5df 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -231,7 +231,7 @@ export class DiscordBot {
       // Webhooks don't send guild info.
       evt.GuildId = guildId;
       evt.ChannelId = channelId;
-      this.store.Insert(evt);
+      return this.store.Insert(evt);
     });
     return;
   }
@@ -453,7 +453,7 @@ export class DiscordBot {
         evt.DiscordId = msgID;
         evt.ChannelId = chan.id;
         evt.GuildId = guild.id;
-        this.store.Insert(evt);
+        return this.store.Insert(evt);
       });
     });
 
@@ -591,7 +591,7 @@ export class DiscordBot {
               evt.DiscordId = msg.id;
               evt.ChannelId = msg.channel.id;
               evt.GuildId = msg.guild.id;
-              this.store.Insert(evt);
+              return this.store.Insert(evt);
             });
           });
         });
@@ -610,7 +610,7 @@ export class DiscordBot {
                     evt.DiscordId = msg.id;
                     evt.ChannelId = msg.channel.id;
                     evt.GuildId = msg.guild.id;
-                    this.store.Insert(evt);
+                    return this.store.Insert(evt);
                 });
             });
         });
-- 
GitLab