Merge pull request #8882 from appwrite/fix-sites-logs-realtime

Fix: sites deployment logs realtime
This commit is contained in:
Matej Bačo 2024-10-28 12:26:54 +01:00 committed by GitHub
commit 8424351d49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,6 +344,16 @@ class Realtime extends Adapter
$roles = [Role::team($project->getAttribute('teamId'))->toString()];
}
break;
case 'sites':
if ($parts[2] === 'deployments') {
$channels[] = 'console';
$channels[] = 'projects.' . $project->getId();
$projectId = 'console';
$roles = [Role::team($project->getAttribute('teamId'))->toString()];
}
break;
case 'migrations':
$channels[] = 'console';