changed to let

This commit is contained in:
Miodec 2022-02-03 22:06:38 +01:00
parent a016d66474
commit 0ce23c0041

View file

@ -21,7 +21,7 @@ class QuoteRatingsController {
if (!user) {
throw new MonkeyError(401, "User not found.");
}
const quoteRatings = user.quoteRatings;
let quoteRatings = user.quoteRatings;
if (quoteRatings === undefined) quoteRatings = {};
if (quoteRatings[language] === undefined) quoteRatings[language] = {};