0
0
Fork 0

Correct config validation on the datastore filepath

This commit is contained in:
Oliver-Akins 2021-01-07 12:37:20 -07:00
parent e5a14322c0
commit 5666a507c8

View file

@ -41,7 +41,7 @@ export class Validate {
valid = false; valid = false;
}; };
if (conf.datastores.enabled && conf.datastores.directory?.length > 0) { if (conf.datastores.enabled && conf.datastores.directory?.length == 0) {
log.error(`datastores.directory must be a filepath if datastores.enabled is set to true`); log.error(`datastores.directory must be a filepath if datastores.enabled is set to true`);
valid = false; valid = false;
}; };