hotfix: wrong boolean logic
This commit is contained in:
parent
e59d7649de
commit
7ea79bf6a9
|
@ -33,7 +33,7 @@ func (d *Dependencies) AddNewJoke(c *fiber.Ctx) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !validateLink {
|
if validateLink {
|
||||||
return c.Status(fiber.StatusConflict).JSON(Error{
|
return c.Status(fiber.StatusConflict).JSON(Error{
|
||||||
Error: "Given link is already on the jokesbapak2 database",
|
Error: "Given link is already on the jokesbapak2 database",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue