[census] don't compare fingerprints between loggen in and anonymous users
This commit is contained in:
parent
b98ed495c3
commit
0d65127eb4
|
@ -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();
|
||||
|
|
Reference in New Issue