feat: validtion of quicksend

This commit is contained in:
prafull-opensignlabs
2024-08-20 15:56:00 +05:30
parent 9a03bfb9e7
commit 5d89f724f4
16 changed files with 561 additions and 288 deletions
@@ -72,6 +72,8 @@ export default async function BuyApis(request) {
throw new Parse.Error('400', 'Invalid access token.');
}
}
} else {
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'User not found.');
}
} catch (err) {
const code = err?.response?.data?.code || err?.response?.status || err?.code || 400;
@@ -80,7 +82,7 @@ export default async function BuyApis(request) {
err?.response?.data ||
err?.message ||
'Something went wrong.';
console.log('err in buyaddon', code, msg);
console.log('err in Buyaddonusers', code, msg);
throw new Parse.Error(code, msg);
}
} else {