mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fix key replacements
This commit is contained in:
parent
544413dddf
commit
5cefda4ff2
1 changed files with 7 additions and 3 deletions
|
|
@ -249,9 +249,13 @@ class Resolvers
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$payload = \array_map(function ($property) {
|
foreach ($payload as $key => $value) {
|
||||||
return \str_replace('$', '_', $property);
|
if (\str_starts_with($key, '$')) {
|
||||||
}, $payload);
|
$escapedKey = \str_replace('$', '_', $key);
|
||||||
|
$payload[$escapedKey] = $value;
|
||||||
|
unset($payload[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$resolve($payload);
|
$resolve($payload);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue