db-path module ignores dbPath config
The db-path
module returns require('path').join(appPath, 'api', 'db', process.env.NODE_ENV)
, which could be different from the value in config['pubsweet-server'].dbPath
.
This affects things like the setupdb
command which add documents to the database at this path.