Skip to content

Commit

Permalink
Update database.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leedh430 authored Dec 11, 2019
1 parent 9a77dc1 commit d26d6e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/utils/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d26d6e5

Please sign in to comment.