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

This commit is contained in:
Gani Georgiev committed 2023-12-08 15:46:33 +02:00
1 parent afbbc1d97c
commit 4c473385b2
4 files changed
+21 -3

No files matched your search

+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()
})
}