Merge pull request #1961 from automatisch/fix-undefined-datastore-entry-throwing

fix(datastore): stop undefined datastore entry throwing
This commit is contained in:
Ali BARIN
2024-07-12 12:37:53 +02:00
committed by GitHub

View File

@@ -98,9 +98,9 @@ const globalVariable = async (options) => {
});
return {
key: datastore.key,
value: datastore.value,
[datastore.key]: datastore.value,
key: key,
value: datastore?.value ?? null,
[key]: datastore?.value ?? null,
};
},
set: async ({ key, value }) => {