Fixed a bug in the config.js controller

This commit is contained in:
Mathias Wagner
2024-05-19 17:03:07 +02:00
parent de1cab9994
commit 3992fece17
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports.listAll = async () => {
}
module.exports.getValue = async (key) => {
return (await config.findByPk(key)).value;
return (await config.findByPk(key))?.value;
}
module.exports.updateValue = async (key, newValue) => {