mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
log and return message
This commit is contained in:
parent
33c1c450e0
commit
ba22fa0ffc
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ func handleSync(bs *booking.Service) echo.HandlerFunc {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return c.String(http.StatusInternalServerError, err.Error())
|
return c.String(http.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
log.Warnf("%+v", b)
|
log.Infof("created booking %q from %q", b.Name, b.Platform)
|
||||||
|
|
||||||
return c.JSON(http.StatusCreated, b)
|
return c.JSON(http.StatusCreated, "👍")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue