This commit is contained in:
Barış Soner Uşaklı
2021-09-03 20:34:42 -04:00
committed by GitHub
parent 856ba78a5f
commit 0ce4b87d85
4 changed files with 57 additions and 6 deletions

View File

@@ -11,7 +11,9 @@ module.exports = function (module) {
if (data.hasOwnProperty('')) {
delete data[''];
}
if (!Object.keys(data).length) {
return;
}
await module.transaction(async (client) => {
const dataString = JSON.stringify(data);
async function setOne(key) {