mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-04 11:10:12 -05:00
Fixed a bug in the config.js controller
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user