mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-05 11:19:14 +02:00
feat:#65 adjusted missing changes backend migration
This commit is contained in:
@@ -106,7 +106,7 @@ func updateDatabase(base *pocketbase.PocketBase, eventsToBeAdded []model.Event,
|
||||
var err error
|
||||
|
||||
// to in transaction the events will be added and deleted
|
||||
err = base.App.RunInTransaction(func(app core.App) error {
|
||||
err = base.RunInTransaction(func(app core.App) error {
|
||||
err = db.DeleteAllEventsRatherThenCourse(app, course, semester)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user