fix: use $sequence for team lookup instead of $internalId

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-03-14 10:51:18 +13:00
co-authored by Claude Opus 4.6
parent eb2f0b1cea
commit 09c963abda
+1 -1
View File
@@ -1307,7 +1307,7 @@ Http::setResource('team', function (Document $project, Database $dbForPlatform,
$team = $authorization->skip(function () use ($dbForPlatform, $teamInternalId) {
return $dbForPlatform->findOne('teams', [
Query::equal('$internalId', [$teamInternalId]),
Query::equal('$sequence', [$teamInternalId]),
]);
});