1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

Bug fixes for request parser

This commit is contained in:
Matej Baco 2021-12-31 16:17:57 +01:00
parent 457cb18be1
commit 551021085a

View file

@ -9,8 +9,6 @@ class V12 extends Filter
// Convert 0.11 params format to 0.12 format
public function parse(array $content, string $model): array
{
// TODO: Double-check!
switch ($model) {
// No IDs -> Custom IDs
case "account.create":
@ -61,7 +59,7 @@ class V12 extends Filter
// New parameters
protected function addUserId(array $content, string $key): array
protected function addId(array $content, string $key): array
{
$content[$key] = 'unique()';
return $content;