Skip to content

Commit c35458f

Browse files
Remove all task data from websocket to reduce Pusher errors
Sentry MIGRATETOFLARUM-LAB-6
1 parent e97e66c commit c35458f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Events/TaskUpdated.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class TaskUpdated extends AbstractTaskEvent
1010
public function broadcastWith(): array
1111
{
1212
return Arr::except((new TaskResource($this->task))->jsonSerialize(), [
13-
'attributes.public_log', // Could be too big for Pusher
13+
// This broadcast is only to update the state of a task
14+
// We'll skip all data that could make the payload too large for Pusher
15+
'attributes.data',
16+
'attributes.public_log',
1417
'attributes.private_log',
1518
]);
1619
}

0 commit comments

Comments
 (0)