From a5934d38d6d5b348445deffc5209fa22071406da Mon Sep 17 00:00:00 2001 From: sanke1 <22073083+sankerust@users.noreply.github.com> Date: Thu, 27 Sep 2018 15:29:24 +0300 Subject: [PATCH] Added task info #13 (#17) --- src/routes/tasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }