feat:#53 added check if already added

This commit is contained in:
Elmar Kresse
2024-04-15 18:56:19 +02:00
parent 5ea6daf759
commit c29e4b9ee6
4 changed files with 72 additions and 49 deletions

View File

@@ -185,7 +185,7 @@ func GetPlanForModules(app *pocketbase.PocketBase, modules map[string]model.Feed
var selectedModulesQuery = buildIcalQueryForModules(moduleBatch)
// get all events from event records in the events collection
err := app.Dao().DB().Select("*").From("events").Where(selectedModulesQuery).All(&events)
err := app.Dao().DB().Select("*").From("events").Where(selectedModulesQuery).OrderBy("start").All(&events)
if err != nil {
return nil, err
}