Commit c455f58
authored
fix: remove init of transaction for global doc access (#14693)
When getting the globals doc permissions we were creating a transaction.
This was causing transaction errors to occur where the session was
closed already due to a promise.All() during
[renderDocument](https://github.com/payloadcms/payload/blob/802a21afea066542a08bbd9fbd8f386f58a94e3d/packages/next/src/views/Document/index.tsx#L170)
This change makes it so we no longer create the transaction as is normal
for all other db read operations.1 parent c484a05 commit c455f58
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
0 commit comments