feat:#16 fixed contains with slices

This commit is contained in:
Elmar Kresse
2023-10-25 01:34:39 +02:00
parent b48af9f2ac
commit abad60b48a
4 changed files with 52 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ func GetSeminarEvents(c echo.Context, app *pocketbase.PocketBase) error {
savedRecords, dbError := db.SaveEvents(seminarGroups, app)
if dbError != nil {
return apis.NewNotFoundError("Events could not be saved", dbError)
return apis.NewNotFoundError("Events could not be saved", dbError.Error())
}
return c.JSON(http.StatusOK, savedRecords)