Merge pull request #686 from Charlo270398/development-statisticsBUG

Statistics not tracked when the user is not a test user fixed
This commit is contained in:
Tomas Bures 2019-08-21 14:34:55 +02:00 committed by GitHub
commit 5abf100776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,11 +242,11 @@ async function getByEmail(context, listId, email, grouped = true) {
return result;
}
async function getByCid(context, listId, cid, grouped = true, isTest = true) {
async function getByCid(context, listId, cid, grouped = true, isTest = false) {
return await _getBy(context, listId, 'cid', cid, grouped, isTest);
}
async function getByCidTx(tx, context, listId, cid, grouped = true, isTest = true) {
async function getByCidTx(tx, context, listId, cid, grouped = true, isTest = false) {
return await _getByTx(tx, context, listId, 'cid', cid, grouped, isTest);
}