diff --git a/src/backend/utils/database.js b/src/backend/utils/database.js index 3e6503d..e21f5f1 100644 --- a/src/backend/utils/database.js +++ b/src/backend/utils/database.js @@ -263,7 +263,8 @@ const reportUser = async (userId) => { var params = [userId]; try { const update = await query(sql, params); - const report_count = await query(sql2, params); + const getReportCount = await query(sql2, params); + const report_count = getReportCount[0]; if (report_count % 3 == 0){ await downReliability(userId); }