Skip to content

Commit

Permalink
Limits Importer to removing Topic, Reply, Gambit data. Refs: #366
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewwwk committed Aug 13, 2017
1 parent 77327d1 commit c379517
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bot/db/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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());
},
Expand Down

0 comments on commit c379517

Please sign in to comment.