From 7ea79bf6a9ffe93ccca6d9d6021ac7025aadc64f Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 20 Nov 2021 21:40:43 +0700 Subject: [PATCH] hotfix: wrong boolean logic --- api/handler/joke/joke_add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/joke/joke_add.go b/api/handler/joke/joke_add.go index cfc13b7..13f8f75 100644 --- a/api/handler/joke/joke_add.go +++ b/api/handler/joke/joke_add.go @@ -33,7 +33,7 @@ func (d *Dependencies) AddNewJoke(c *fiber.Ctx) error { return err } - if !validateLink { + if validateLink { return c.Status(fiber.StatusConflict).JSON(Error{ Error: "Given link is already on the jokesbapak2 database", })