Skip to content
Snippets Groups Projects
Commit f340d322 authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas
Browse files

feat(applicationparameter): get config for bookbuilder from database

parent 5016e7ce
No related branches found
No related tags found
1 merge request!23Add dynamic component types
const path = require('path')
const components = require('./components')
const bookBuilder = require('./modules/book-builder')
const winston = require('winston')
// const authsomeMode = require('./modules/authsome')
......@@ -46,7 +45,6 @@ module.exports = {
},
},
},
bookBuilder,
epub: {
fontsPath: '/uploads/fonts',
},
......
......@@ -15,10 +15,10 @@ const seed = async () => {
const parameters = await new ApplicationParameter({
context: 'bookBuilder',
area,
config: config[area],
config: JSON.stringify(config[area]),
}).save()
logger.info(
`New Application Parameter created: ${JSON.parse(config[area])}`,
`New Application Parameter created: ${JSON.stringify(config[area])}`,
)
return parameters
}),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment