Skip to content

Commit

Permalink
Fix config output
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Feb 18, 2021
1 parent f2e1563 commit a63842f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/app/action/index.mjs
Expand Up @@ -161,7 +161,8 @@
//Core config
info.break()
info.group({metadata, name:"core", inputs:config})
info("Plugin errors", die ? "(exit with error)" : "(displayed in generated SVG)")
info("Plugin errors", die ? "(exit with error)" : "(displayed in generated image)")
const convert = ["jpeg", "png"].includes(config["config.output"]) ? config["config.output"] : null
Object.assign(q, config)

//Base content
Expand Down Expand Up @@ -199,7 +200,7 @@
//Render metrics
info.break()
info.section("Rendering")
const {rendered} = await metrics({login:user, q}, {graphql, rest, plugins, conf, die, verify}, {Plugins, Templates})
const {rendered} = await metrics({login:user, q}, {graphql, rest, plugins, conf, die, verify, convert}, {Plugins, Templates})
info("Status", "complete")

//Commit metrics
Expand Down

0 comments on commit a63842f

Please sign in to comment.