We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b28c9 commit b9868c4Copy full SHA for b9868c4
packages/payload/src/query-presets/constraints.ts
@@ -74,7 +74,7 @@ export const getConstraints = (config: Config): Field => ({
74
},
75
],
76
77
- relationTo: 'users',
+ relationTo: config.admin?.user ?? 'users', // TODO: remove this fallback when the args are properly typed as `SanitizedConfig`
78
79
...(config?.queryPresets?.constraints?.[operation]?.reduce(
80
(acc: Field[], option: QueryPresetConstraint) => {
0 commit comments