realtime connection
This commit is contained in:
parent
06e6df3ca1
commit
c99db70d5d
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,7 @@ use InvalidArgumentException;
|
|||
use Utopia\Database\Document;
|
||||
use Utopia\Queue\Client;
|
||||
use Utopia\Queue\Connection;
|
||||
use Utopia\System\System;
|
||||
|
||||
class Event
|
||||
{
|
||||
|
@ -55,6 +56,7 @@ class Event
|
|||
protected ?Document $project = null;
|
||||
protected ?Document $user = null;
|
||||
protected bool $paused = false;
|
||||
protected string $region = '';
|
||||
|
||||
/**
|
||||
* @param Connection $connection
|
||||
|
@ -62,6 +64,13 @@ class Event
|
|||
*/
|
||||
public function __construct(protected Connection $connection)
|
||||
{
|
||||
$region = System::getEnv('_APP_REGION', 'default');
|
||||
}
|
||||
|
||||
|
||||
public function getRegion(): string
|
||||
{
|
||||
return $this->region;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue