fix: Queries with object field authData.provider.id are incorrectly transformed to _auth_data_provider.id for custom classes (#9932)

This commit is contained in:
Manuel
2025-11-17 17:47:39 +01:00
committed by GitHub
parent 8ff1d89ce2
commit 7b9fa18f96
2 changed files with 18 additions and 1 deletions

View File

@@ -305,7 +305,7 @@ function transformQueryKeyValue(className, key, value, schema, count = false) {
default: {
// Other auth data
const authDataMatch = key.match(/^authData\.([a-zA-Z0-9_]+)\.id$/);
if (authDataMatch) {
if (authDataMatch && className === '_User') {
const provider = authDataMatch[1];
// Special-case auth data.
return { key: `_auth_data_${provider}.id`, value };