trigger OnTerminate() hook on app.Restart() call

This commit is contained in:
Gani Georgiev
2023-12-08 15:45:58 +02:00
parent afbbc1d97c
commit 4c473385b2
4 changed files with 21 additions and 3 deletions
+1 -2
View File
@@ -169,8 +169,7 @@ func (pb *PocketBase) Execute() error {
return pb.OnTerminate().Trigger(&core.TerminateEvent{
App: pb,
}, func(e *core.TerminateEvent) error {
e.App.ResetBootstrapState()
return nil
return e.App.ResetBootstrapState()
})
}