From 8af2128f40372a916a2255cdd356bda8b30fe5ac Mon Sep 17 00:00:00 2001 From: Iain Emsley Date: Wed, 30 Oct 2024 18:48:00 +0000 Subject: [PATCH] checking author stats --- datamodel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodel.js b/datamodel.js index 66be2d6..864ba8c 100644 --- a/datamodel.js +++ b/datamodel.js @@ -294,7 +294,7 @@ function parseTiktok (header, data) { } authStats = 0; - if (!'authorStats' in row['data'] || row['data']["authorStats"] != undefined) { + if ('authorStats' in row['data'] && row['data']["authorStats"] != undefined) { authStats = row['data']["authorStats"]["followerCount"]; }