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

This commit is contained in:
Avris 2021-02-01 10:41:13 +01:00
parent b98ed495c3
commit 0d65127eb4
1 changed files with 2 additions and 5 deletions

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();