revert ResetBootstrapState removal on app termination since closing the db explicitly enforces checkout and clearing the side-car wal file

This commit is contained in:
Gani Georgiev
2023-12-09 19:43:03 +02:00
parent 646f90ef43
commit b9f391cf85
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -169,6 +169,8 @@ func (pb *PocketBase) Execute() error {
// trigger cleanups
return pb.OnTerminate().Trigger(&core.TerminateEvent{
App: pb,
}, func(e *core.TerminateEvent) error {
return e.App.ResetBootstrapState()
})
}