updates
This commit is contained in:
parent
1cc3d50cdc
commit
285c82193f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.29",
|
"version": "1.1.30",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -71,6 +71,14 @@ module.exports = async function ({ key, database, response, request, level, encr
|
|||||||
request,
|
request,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!existingUser?.payload?.id) {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
payload: null,
|
||||||
|
msg: "Cookie Credentials Invalid",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make https request
|
* Make https request
|
||||||
*
|
*
|
||||||
@ -78,7 +86,7 @@ module.exports = async function ({ key, database, response, request, level, encr
|
|||||||
*/
|
*/
|
||||||
const httpResponse = await new Promise((resolve, reject) => {
|
const httpResponse = await new Promise((resolve, reject) => {
|
||||||
const reqPayload = JSON.stringify({
|
const reqPayload = JSON.stringify({
|
||||||
existingUser,
|
existingUser: existingUser.payload,
|
||||||
database,
|
database,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user