From 5caa5e2cdfd7c7671d4a01ac7e17121a5e357ea1 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Tue, 29 Nov 2022 12:20:16 +0530 Subject: [PATCH] suseendhiran --- app/controllers/googlesheet.code-workspace | 8 ++++ app/controllers/test.controller.js | 4 +- app/views/displaydata.ejs | 50 ++++++++-------------- 3 files changed, 29 insertions(+), 33 deletions(-) create mode 100644 app/controllers/googlesheet.code-workspace diff --git a/app/controllers/googlesheet.code-workspace b/app/controllers/googlesheet.code-workspace new file mode 100644 index 0000000..407c760 --- /dev/null +++ b/app/controllers/googlesheet.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "../.." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/app/controllers/test.controller.js b/app/controllers/test.controller.js index 2dbe474..747e869 100644 --- a/app/controllers/test.controller.js +++ b/app/controllers/test.controller.js @@ -162,8 +162,8 @@ exports.addRow = async (req, res) => const row = rows[index]; await sheet.addRow(row); } - if (rows[0].Gatnayak == tempData[0]['Sl.'] ) { res.send({'status':200 , message:"Success." ,'data': "success" , 'statusCode' : 1 }); } - else{ res.send({'status':200 , message:"Success." ,'data': "success", 'statusCode' : 0 }); } + if (rows[0]['Gatnayak'] == tempData[0].email ) {res.send({'status':200 , message:"Success." ,'data': "success" , 'statusCode' : 1 }); } + else{res.send({'status':200 , message:"Success." ,'data': "success", 'statusCode' : 0 }); } } catch(err) { res.status(500).send({'status':404, message: err.message || "Some error occurred while inserting statements." ,'data': "No data" diff --git a/app/views/displaydata.ejs b/app/views/displaydata.ejs index a8d96c8..06b24bf 100644 --- a/app/views/displaydata.ejs +++ b/app/views/displaydata.ejs @@ -750,9 +750,9 @@ select , option {