Browse Source

Added task info #13 (#17)

pull/1/head
sanke1 6 years ago committed by rozetko
parent
commit
a5934d38d6
  1. 2
      src/routes/tasks.ts

2
src/routes/tasks.ts

@ -18,7 +18,7 @@ async function addTask(req, res) {
} else if(from >= to) { } else if(from >= to) {
res.status(500).send('Range error: "from" should be less than "to"'); res.status(500).send('Range error: "from" should be less than "to"');
} else { } else {
res.status(200).send('Task added'); res.status(200).send('Exporting ' + datasourceName + ' data from ' + new Date(from).toLocaleString() + ' to ' + new Date(to).toLocaleString());
let target = new Target(panelUrl, user, datasource, targets, from, to, datasourceName); let target = new Target(panelUrl, user, datasource, targets, from, to, datasourceName);
target.export(); target.export();
} }

Loading…
Cancel
Save