From 09c963abda657eda2e017d9a8aa8228bc6f6a5f6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sat, 14 Mar 2026 10:51:18 +1300 Subject: [PATCH] fix: use $sequence for team lookup instead of $internalId Co-Authored-By: Claude Opus 4.6 --- app/init/resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init/resources.php b/app/init/resources.php index a92f0835ba..4ebe705e73 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -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]), ]); });