Add option to disable email cheking for imported CSV
This commit is contained in:
parent
2df265009c
commit
1547e887c3
6 changed files with 73 additions and 40 deletions
|
@ -982,7 +982,7 @@ module.exports.delete = (listId, cid, callback) => {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.createImport = (listId, type, path, size, delimiter, mapping, callback) => {
|
||||
module.exports.createImport = (listId, type, path, size, delimiter, emailcheck, mapping, callback) => {
|
||||
listId = Number(listId) || 0;
|
||||
type = Number(type) || 1;
|
||||
|
||||
|
@ -994,8 +994,8 @@ module.exports.createImport = (listId, type, path, size, delimiter, mapping, cal
|
|||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
let query = 'INSERT INTO importer (`list`, `type`, `path`, `size`, `delimiter`, `mapping`) VALUES(?,?,?,?,?,?)';
|
||||
connection.query(query, [listId, type, path, size, delimiter, JSON.stringify(mapping)], (err, result) => {
|
||||
let query = 'INSERT INTO importer (`list`, `type`, `path`, `size`, `delimiter`, `emailcheck`, `mapping`) VALUES(?,?,?,?,?,?,?)';
|
||||
connection.query(query, [listId, type, path, size, delimiter, emailcheck, JSON.stringify(mapping)], (err, result) => {
|
||||
connection.release();
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue