From 90f82ae36ea9ae8e8cd6be9bdce71271de2709aa Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 29 Dec 2023 08:16:40 +0600 Subject: [PATCH] tiktok: throw a proper error if no video was returned from api --- src/modules/processing/services/tiktok.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js index bd925b56..0da62a1e 100644 --- a/src/modules/processing/services/tiktok.js +++ b/src/modules/processing/services/tiktok.js @@ -23,7 +23,7 @@ function selector(j, h, id) { t = j['aweme_detail']; break; } - if (t.length < 3) return false; + if (t?.length < 3) return false; return t; }