Correct config validation on the datastore filepath
This commit is contained in:
parent
e5a14322c0
commit
5666a507c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue