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]), ]); });