aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/Util.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2021-06-17 16:06:53 +0300
committerZephyrrus <[email protected]>2021-06-17 16:06:53 +0300
commit0cae7e9eda3b62c17cfa7ec620913f4a504bc5ee (patch)
tree8573814b4c86f03390cf8e641a03bc8dc7572ec0 /src/api/utils/Util.js
parentfeat: show setting values on the settings page and implement sending to backe... (diff)
downloadhost.fuwn.me-0cae7e9eda3b62c17cfa7ec620913f4a504bc5ee.tar.xz
host.fuwn.me-0cae7e9eda3b62c17cfa7ec620913f4a504bc5ee.zip
feat: show validation errors from joi on the frontend
Diffstat (limited to 'src/api/utils/Util.js')
-rw-r--r--src/api/utils/Util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js
index 3780460..628be82 100644
--- a/src/api/utils/Util.js
+++ b/src/api/utils/Util.js
@@ -64,7 +64,7 @@ class Util {
static async writeConfigToDb(config) {
// TODO: Check that the config passes the joi schema validation
- if (!config || !config.key || !config.key) return;
+ if (!config || !config.key) return;
try {
config.value = JSON.stringify(config.value);
await db.table('settings').insert(config);