From c29b436f167903e710d94fab96ea3eec4e59ae99 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 13 Apr 2024 20:14:34 -0400 Subject: [PATCH] db insert --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index cd07e75..f70779c 100644 --- a/index.js +++ b/index.js @@ -97,11 +97,9 @@ app.post('/upload/task', upload.single('file'), (req, res) => { var queryText = 'INSERT INTO members_jobs_files( request ) VALUES($1) RETURNING id'; db.query(queryText, [data], function(dbErr, result) { if (dbErr) { - - + console.log("DataError - > ", dbErr.toString()); }else{ - - + console.log("DB Result - > " , result); } console.log('End::Database Registration!'); })