Skip to content

Commit

Permalink
fix(config): fix async call to update config
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Apr 4, 2023
1 parent f9b7f2e commit 40441d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web-server/controllers/config.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const getActiveConfiguration = (ctx) => {
* @param {Object} ctx - The KOA context
* @return {void}
*/
const updateConfig = (ctx) => {
const updateConfig = async (ctx) => {
try {
ctx.app.engine.configService.updateConfig(ctx.request.body)
await ctx.app.engine.configService.updateConfig(ctx.request.body)
ctx.ok()
} catch (error) {
ctx.throw(500, 'Unable to update Config')
Expand Down

0 comments on commit 40441d1

Please sign in to comment.