diff --git a/backend/handlers/updatePerson.go b/backend/handlers/updatePerson.go index f543df7..ce094cb 100644 --- a/backend/handlers/updatePerson.go +++ b/backend/handlers/updatePerson.go @@ -28,9 +28,9 @@ func UpdatePerson(driver neo4j.DriverWithContext) gin.HandlerFunc { return } - if person.ID != "" { + if person.ID == "" { log.Printf("ip: %s error: %s", c.ClientIP(), err) - c.JSON(http.StatusBadRequest, gin.H{"error": "no person ID provided"}) + c.JSON(http.StatusBadRequest, gin.H{"error": "No ID provided"}) return }