realtime connection

This commit is contained in:
shimon
2024-09-03 18:05:16 +03:00
parent c331fcd46e
commit a84eb40efb
+1 -8
View File
@@ -112,7 +112,7 @@ class Databases extends Action
if ($attribute->isEmpty()) {
throw new Exception('Missing attribute');
}
var_dump("innnn");
$projectId = $project->getId();
$events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].update', [
@@ -632,13 +632,6 @@ class Databases extends Action
callable $realtimeConnection
): void {
var_dump([
'sourceRegion' => $this->sourceRegion,
'redis' => $realtimeConnection($this->sourceRegion),
'projectId' => 'console',
'payload' => $attribute->getArrayCopy()
]);
$target = Realtime::fromPayload(
// Pass first, most verbose event pattern
event: $events[0],