diff options
Diffstat (limited to 'application_router.go')
-rw-r--r-- | application_router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application_router.go b/application_router.go index bdc8007..5ee3d62 100644 --- a/application_router.go +++ b/application_router.go @@ -86,10 +86,10 @@ func CreateApplicationRouter(applicationContext *ApplicationContext) *gin.Engine return } - updated, err := applicationContext.RulesManager.UpdateRule(c, id, rule) + isPresent, err := applicationContext.RulesManager.UpdateRule(c, id, rule) if err != nil { badRequest(c, err) - } else if !updated { + } else if !isPresent { notFound(c, UnorderedDocument{"id": id}) } else { success(c, rule) |