mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-05 03:27:27 +01:00
delay default response body write for *Request hooks wrapped in a transaction
This commit is contained in:
1 parent
1a3efe96ac
commit
dc350f0a3e
38 files changed
+759
-149
No files matched your search
@@ -29,7 +29,9 @@ func collectionsImport(e *core.RequestEvent) error {
|
||||
return event.App.OnCollectionsImportRequest().Trigger(event, func(e *core.CollectionsImportRequestEvent) error {
|
||||
importErr := e.App.ImportCollections(e.CollectionsData, form.DeleteMissing)
|
||||
if importErr == nil {
|
||||
return e.NoContent(http.StatusNoContent)
|
||||
return execAfterSuccessTx(true, e.App, func() error {
|
||||
return e.NoContent(http.StatusNoContent)
|
||||
})
|
||||
}
|
||||
|
||||
// validation failure
|
||||
|
||||
Reference in new issue
Block a user