From b1735ef9452a9a16baaa55d4fe6c488b3149dcb5 Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 6 May 2025 12:14:54 +0530 Subject: [PATCH] remove: aliasing filter. --- .../Request/Filters/DatabaseAliases.php | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/Appwrite/Utopia/Request/Filters/DatabaseAliases.php diff --git a/src/Appwrite/Utopia/Request/Filters/DatabaseAliases.php b/src/Appwrite/Utopia/Request/Filters/DatabaseAliases.php deleted file mode 100644 index 0ee2754475..0000000000 --- a/src/Appwrite/Utopia/Request/Filters/DatabaseAliases.php +++ /dev/null @@ -1,39 +0,0 @@ - 'rowId', - 'attributes' => 'columns', - 'collectionId' => 'tableId', - 'attributeId' => 'columnId', - 'relatedCollection' => 'relatedTable', - 'relatedCollectionId' => 'relatedTableId', - ]; - - public function parse(array $content, string $model): array - { - return $this->overrideDatabaseParams($content, $model); - } - - protected function overrideDatabaseParams(array $content, string $model): array - { - if (!str_starts_with($model, 'databases.')) { - return $content; - } - - $intersect = array_intersect_key(self::PARAMS_MAP, $content); - - foreach ($intersect as $oldKey => $newKey) { - $content[$newKey] = $content[$oldKey]; - unset($content[$oldKey]); - } - - return $content; - } -}