This commit is contained in:
Tben
2023-05-06 13:11:01 +01:00
parent 154b59727a
commit 1eb11ede15
7 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "datasquirel",
"version": "1.0.4",
"version": "1.0.5",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"scripts": {
+3 -1
View File
@@ -69,10 +69,12 @@ module.exports = async function ({ key, payload, database }) {
});
}
)
.write({
.write(
JSON.stringify({
payload,
database,
})
)
.end();
});
+3 -1
View File
@@ -106,10 +106,12 @@ module.exports = async function ({ key, payload, database, response, encryptionK
});
}
)
.write({
.write(
JSON.stringify({
payload,
database,
})
)
.end();
});
+1 -1
View File
@@ -4,7 +4,7 @@
* ==============================================================================
* @param {Object} response - Http response object
*/
module.exports = async function ({ response }) {
module.exports = function ({ response }) {
/**
* Check Encryption Keys
*
+1 -1
View File
@@ -20,7 +20,7 @@ const decrypt = require("../functions/decrypt");
* @param {String} encryptionKey - Encryption Key
* @param {String} encryptionSalt - Encryption Salt
*/
module.exports = async function ({ request, encryptionKey, encryptionSalt }) {
module.exports = function ({ request, encryptionKey, encryptionSalt }) {
/**
* Grab the payload
*
+1 -1
View File
@@ -68,7 +68,7 @@ module.exports = async function ({ key, payload }) {
});
}
)
.write(payload)
.write(JSON.stringify(payload))
.end();
});
+1 -1
View File
@@ -65,7 +65,7 @@ module.exports = async function ({ key, payload }) {
});
}
)
.write(payload)
.write(JSON.stringify(payload))
.end();
});