+
+
+
+
+
+
+
+ - Apps
+ -
+ Hosting
+
+ -
+ Documentation
+
+ -
+ Community
+
+ -
+ Raise an issue
+
+
-
- {:else}
-
- {/if}
-{/if}
+
+
+
+
+
diff --git a/packages/worker/src/api/controllers/admin/templates.js b/packages/worker/src/api/controllers/admin/templates.js
index 30c90d50bf..c65aaeea75 100644
--- a/packages/worker/src/api/controllers/admin/templates.js
+++ b/packages/worker/src/api/controllers/admin/templates.js
@@ -1,5 +1,5 @@
const { generateTemplateID, StaticDatabases } = require("@budibase/auth").db
-const { CouchDB } = require("../../../db")
+const CouchDB = require("../../../db")
const {
TemplateMetadata,
TemplateBindings,
diff --git a/packages/worker/src/api/routes/admin/configs.js b/packages/worker/src/api/routes/admin/configs.js
index 9437aec588..38212ea17f 100644
--- a/packages/worker/src/api/routes/admin/configs.js
+++ b/packages/worker/src/api/routes/admin/configs.js
@@ -17,7 +17,7 @@ function smtpValidation() {
auth: Joi.object({
type: Joi.string().valid("login", "oauth2", null),
user: Joi.string().required(),
- pass: Joi.string().valid("", null),
+ pass: Joi.string().allow("", null),
}).optional(),
}).unknown(true)
}