new end point -> list import logs

This commit is contained in:
Paul Trowbridge 2018-07-04 16:05:16 -04:00
parent ba9ef9e3b4
commit a2986f5904

View File

@ -107,6 +107,14 @@ server.use("/import", upload.single('upload'), function (inReq, inRes) {
}
);
//----------------------------------------------------------import_logs--------------------------------------------------------------------------------------------------------------------------------
server.get("/import_log", function (inReq, inRes)
{
var sql = "SELECT jsonb_agg(info) info FROM tps.trans_log WHERE info @> $1::jsonb";
Postgres.FirstRow(sql, [inReq.query], inRes);
});
//-------------------------------------------------------------suggest source def----------------------------------------------------------------------------------------------------------------------
server.use("/csv_suggest", upload.single('upload'), function (inReq, inRes) {