From f68edb51c73100e5494aa4203629c34fdd988769 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 5 Jun 2023 11:27:43 +0600 Subject: [PATCH] 4 spaces!! four!! --- src/modules/processing/services/pinterest.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/processing/services/pinterest.js b/src/modules/processing/services/pinterest.js index 2e3354e2..335d7360 100644 --- a/src/modules/processing/services/pinterest.js +++ b/src/modules/processing/services/pinterest.js @@ -2,12 +2,12 @@ import { maxVideoDuration } from "../../config.js"; export default async function(obj) { const pinId = obj.id.split('--').reverse()[0]; - if (!/^\d+$/.test(pinId)) return { error: 'ErrorCantGetID' }; + if (!(/^\d+$/.test(pinId))) return { error: 'ErrorCantGetID' }; let data = await fetch(`https://www.pinterest.com/resource/PinResource/get?data=${encodeURIComponent(JSON.stringify({ - options: { - field_set_key: "unauth_react_main_pin", - id: pinId - } + options: { + field_set_key: "unauth_react_main_pin", + id: pinId + } }))}`).then((r) => { return r.json() }).catch(() => { return false }); if (!data) return { error: 'ErrorCouldntFetch' };