mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
Fix update person
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user