Skip to content

Commit

Permalink
fix: unlock site after successful API call for rollback route handler (
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonlimlianjie authored Mar 8, 2021
1 parent 7c230d3 commit 07d70dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware/routeHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const attachRollbackRouteHandlerWrapper = (routeHandler) => async (req, res, nex
await unlock(siteName)
next(err)
})

await unlock(siteName)
}

module.exports = {
Expand Down

0 comments on commit 07d70dd

Please sign in to comment.