Skip to content

Commit

Permalink
checking author stats
Browse files Browse the repository at this point in the history
  • Loading branch information
iaine committed Oct 30, 2024
1 parent e356952 commit 8af2128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datamodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
}

Expand Down

0 comments on commit 8af2128

Please sign in to comment.