fix: serialize

v1.18.x
Baris Usakli 5 years ago
parent 1eca5b3dae
commit a254520485

@ -138,6 +138,7 @@ Configs.setMultiple = async function (data) {
Configs.setOnEmpty = async function (values) {
const data = await db.getObject('config');
values = serialize(values);
const config = { ...values, ...(data ? serialize(data) : {}) };
await db.setObject('config', config);
};

Loading…
Cancel
Save