hotfix: wrong boolean logic

This commit is contained in:
Reinaldy Rafli 2021-11-20 21:40:43 +07:00
parent e59d7649de
commit 7ea79bf6a9
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 1 additions and 1 deletions

View File

@ -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",
})