[HQ, Crowdsource] Fix user weighting bug

This commit is contained in:
vilP1L
2019-06-13 21:34:36 -04:00
parent 35cc3ea62e
commit c3ffbe0156

View File

@@ -127,7 +127,7 @@ export default async (client, prize) => {
if (!correct || (correct && u.weight < 0)) modifier *= -1;
if (!correct && u.weight < 0) modifier *= -1;
client.db.questionCorrect(u.id, correct);
client.db.updateWeight(u.id, -modifier);
client.db.updateWeight(u.id, modifier);
});
}
if (json.type === 'checkpoint') {