Skip to content

Commit

Permalink
change sql poo.execute in get all data request to pool.query
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-yi-shiuan committed Dec 13, 2021
1 parent 33f4ba3 commit f50c109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/service/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const exportMetricCsv = async(data) => {

const getAllCsvExport = async(data) => {
let userId = data.userId;
results = await pool.execute(dataQuery.getAllDataRequest,[userId]);
results = await pool.query(dataQuery.getAllDataRequest,userId);
for(i=0;i<results[0].length;i++){
results[0][i].message = JSON.parse(results[0][i].message);
}
Expand Down

0 comments on commit f50c109

Please sign in to comment.