mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -232,7 +232,7 @@ User.addInterstitials = function (callback) {
|
||||
}
|
||||
|
||||
if (data.userData.uid) {
|
||||
const consented = await db.getObjectField('user:' + data.userData.uid, 'gdpr_consent');
|
||||
const consented = await db.getObjectField(`user:${data.userData.uid}`, 'gdpr_consent');
|
||||
if (parseInt(consented, 10)) {
|
||||
return data;
|
||||
}
|
||||
@@ -266,7 +266,7 @@ User.addInterstitials = function (callback) {
|
||||
}
|
||||
|
||||
if (data.userData.uid) {
|
||||
const accepted = await db.getObjectField('user:' + data.userData.uid, 'acceptTos');
|
||||
const accepted = await db.getObjectField(`user:${data.userData.uid}`, 'acceptTos');
|
||||
if (parseInt(accepted, 10)) {
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user