Repository navigation
Closed
Labels
status: needs-triagePossible bug which hasn't been reproduced yet
Description
Link to reproduction
| export type Options<T extends keyof GeneratedTypes['collections']> = { | |
| collection: T | |
| /** | |
| * context, which will then be passed to req.context, which can be read by hooks | |
| */ | |
| context?: RequestContext | |
| depth?: number | |
| draft?: boolean | |
| fallbackLocale?: string | |
| limit?: number | |
| locale?: string | |
| overrideAccess?: boolean | |
| page?: number | |
| showHiddenFields?: boolean | |
| sort?: string | |
| user?: Document | |
| where?: Where | |
| } |
To Reproduce
Attempt to use one of the local operations findGlobalVersionByID, findGlobalVersions, restoreGlobalVersion, findVersions or restoreVersion with manual transaction management (i.e. passing a PayloadRequest with a transactionID).
Observe that they do not accept a req parameter (in contrast to all other local operations).
Describe the Bug
I assume this is just an oversight as it seems to be pretty random which operations are affected and there does not seem to be a reason for them to be excluded from this feature.
For example, findVersionByID accepts a PayloadRequest, but findGlobalVersionByID does not.
Payload Version
2.0.5
Adapters and Plugins
n/a
Metadata
Metadata
Assignees
Labels
status: needs-triagePossible bug which hasn't been reproduced yet
Activity
diesieben07 commentedon Oct 13, 2023
I am working on a pull request to fix this issue.
github-actions commentedon Sep 7, 2024
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.