Allow international formatted dates in CSV imports

This commit is contained in:
Andris Reinman 2017-02-02 16:47:50 +02:00
parent 1513c761bc
commit 9778c486e9
5 changed files with 27 additions and 15 deletions

View file

@ -10,6 +10,8 @@ let subscriptions = require('../lib/models/subscriptions');
let fs = require('fs');
let csvparse = require('csv-parse');
const process_timout = 5 * 1000;
function findUnprocessed(callback) {
db.getConnection((err, connection) => {
if (err) {
@ -221,7 +223,6 @@ function processImport(data, callback) {
let importLoop = () => {
let getNext = () => {
const process_timout = 5 * 1000;
// find an unsent message
findUnprocessed((err, data) => {
if (err) {