From 3ace1a59a2f77ec2287f1462c5db1d1658521085 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 3 May 2024 19:50:55 +0600 Subject: [PATCH] instagram: add missing awaits to getMediaId calls --- src/modules/processing/services/instagram.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/processing/services/instagram.js b/src/modules/processing/services/instagram.js index 206a9aae..68420a5d 100644 --- a/src/modules/processing/services/instagram.js +++ b/src/modules/processing/services/instagram.js @@ -243,9 +243,9 @@ async function getPost(id) { const token = bearer?.values()?.token; // get media_id for mobile api, three methods - let media_id = getMediaId(id); - if (!media_id && token) media_id = getMediaId(id, { token }); - if (!media_id && cookie) media_id = getMediaId(id, { cookie }); + let media_id = await getMediaId(id); + if (!media_id && token) media_id = await getMediaId(id, { token }); + if (!media_id && cookie) media_id = await getMediaId(id, { cookie }); // mobile api (bearer) if (media_id && token) data = await requestMobileApi(id, { token });