Skip to content

Instantly share code, notes, and snippets.

@chankanzu
Created October 24, 2019 18:14
Show Gist options
  • Save chankanzu/610d9dc35b43f430de6782e851b1d9df to your computer and use it in GitHub Desktop.
Save chankanzu/610d9dc35b43f430de6782e851b1d9df to your computer and use it in GitHub Desktop.
var obj = JSON.parse($response.body);
var url = $request.url;
var cons = "user/info";
if(url.indexOf(cons) != -1)
{
obj["data"]["premium"]["is_premium"] = true;
}
$done({body: JSON.stringify(obj)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment