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 {