From 9784328eb5ac96276521de157db315f594d5fac3 Mon Sep 17 00:00:00 2001 From: Michael Lewkowitz Date: Thu, 17 Aug 2017 19:32:03 -0400 Subject: [PATCH] Limits Importer to removing Topic, Reply, Gambit data. Refs: #366 (#369) --- src/bot/db/import.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bot/db/import.js b/src/bot/db/import.js index eb4685ad..a419e819 100755 --- a/src/bot/db/import.js +++ b/src/bot/db/import.js @@ -47,7 +47,6 @@ const importData = function importData(chatSystem, data, callback) { const Topic = chatSystem.Topic; const Gambit = chatSystem.Gambit; const Reply = chatSystem.Reply; - const User = chatSystem.User; const gambitsWithConversation = []; @@ -162,7 +161,7 @@ const importData = function importData(chatSystem, data, callback) { debug.info('Cleaning database: removing all data.'); // Remove everything before we start importing - async.each([Gambit, Reply, Topic, User], + async.each([Gambit, Reply, Topic], (model, nextModel) => { model.remove({}, err => nextModel()); },