Skip to content

Commit

Permalink
fixed the selfBackup to actually work this time
Browse files Browse the repository at this point in the history
  • Loading branch information
jaku committed Jan 23, 2023
1 parent 8f592f6 commit cd0fdc3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};


Expand Down

0 comments on commit cd0fdc3

Please sign in to comment.