fix linter

This commit is contained in:
Ruidy 2024-09-09 21:15:28 +02:00
parent 701a32671a
commit 6fbac3ec39
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -28,7 +28,7 @@ func handleSync(bs *booking.Service) echo.HandlerFunc {
bookingInfo := new(BookingInfo)
err = json.Unmarshal(body, bookingInfo)
if err != nil {
return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %w", err))
return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %s", err))
}
b, err := bs.ParseFromApi(bookingInfo.Content)