Add option to preserve unsubscribed status on list import, #325

This commit is contained in:
witzig 2017-09-28 00:55:19 +02:00
parent 5ada25c2dc
commit c5b481a266
3 changed files with 14 additions and 2 deletions

View file

@ -625,7 +625,7 @@ module.exports.delete = (listId, cid, callback) => {
module.exports.createImport = (listId, type, path, size, delimiter, emailcheck, mapping, callback) => {
listId = Number(listId) || 0;
type = Number(type) || 1;
type = Number(type) || 0;
if (listId < 1) {
return callback(new Error('Missing List ID'));