This commit is contained in:
ArnabChatterjee20k committed 2026-04-21 17:57:41 +05:30
1 parent f3f8baca83
commit d8ad759751
1 file changed
+8 -1
+8 -1
View File
@@ -1153,9 +1153,16 @@ class Appwrite extends Source
$id = $row['$id'];
$permissions = $row['$permissions'];
// TablesDB(API reader) returns `$tableId`, while downstream import cleanup still
// normalizes/removes legacy `$collectionId`. Mirror the value to keep
// compatibility across both shapes.
if (isset($row['$tableId']) && !isset($row['$collectionId'])) {
$row['$collectionId'] = $row['$tableId'];
}
unset($row['$id']);
unset($row['$permissions']);
unset($row['$collectionId']);
unset($row['$tableId']);
unset($row['$databaseId']);
unset($row['$sequence']);
unset($row['$collection']);