[census] don't compare fingerprints between loggen in and anonymous users

This commit is contained in:
Andrea Vos 2021-02-01 18:41:13 +01:00
parent 0a299d8236
commit 44ba94d59e

View File

@ -26,12 +26,9 @@ const hasFinished = async req => {
WHERE locale = ${req.config.locale}
AND edition = ${req.config.census.edition}
AND fingerprint = ${fingerprint}
AND userId IS NULL
`);
if (byFingerprint) {
return true;
}
return false;
return !!byFingerprint;
}
const router = Router();