From cd0fdc34845408e8a90571e5a3f1956b6b08b5b7 Mon Sep 17 00:00:00 2001 From: Matt Jakubowski Date: Mon, 23 Jan 2023 16:38:16 -0600 Subject: [PATCH] fixed the selfBackup to actually work this time --- server/src/utils/helper.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/src/utils/helper.js b/server/src/utils/helper.js index a8ff479..af6e74f 100644 --- a/server/src/utils/helper.js +++ b/server/src/utils/helper.js @@ -193,11 +193,8 @@ async function postSnapDeeplink(body) { } async function selfBackup(unlockable_id) { - - const data = await Util.getSnapRequest(`unlock?uid=${unlockable_id}`); - if ( data && data['lens_id'] ) DB.insertUnlock(data); - res.json(data); - + const data = await getSnapRequest(`/unlock?uid=${unlockable_id}`); + if ( data && data['lens_id'] ) DB.insertUnlock(data); };