diff --git a/src/routes/tasks.ts b/src/routes/tasks.ts index 56ff35e..2ab8216 100644 --- a/src/routes/tasks.ts +++ b/src/routes/tasks.ts @@ -18,7 +18,7 @@ async function addTask(req, res) { } else if(from >= to) { res.status(500).send('Range error: "from" should be less than "to"'); } 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); target.export(); }