fix:#65 updated db model for proxyrecord

This commit is contained in:
Elmar Kresse
2025-04-22 12:24:05 +02:00
parent c5afe8efca
commit 3e07451c47
9 changed files with 451 additions and 99 deletions

View File

@@ -36,7 +36,7 @@ func CreateIndividualFeed(requestBody []byte, app *pocketbase.PocketBase) (strin
jsonModules, _ := json.Marshal(modules)
icalFeed.Modules = string(jsonModules)
collection, dbError := db.FindCollection(app, "feeds")
collection, dbError := app.FindCollectionByNameOrId("feeds")
if dbError != nil {
return "", apis.NewNotFoundError("Collection could not be found", dbError)
}