Skip to content

Commit

Permalink
pint
Browse files Browse the repository at this point in the history
  • Loading branch information
namumakwembo committed Nov 29, 2024
1 parent a28a122 commit 21a41af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Jobs/NotifyParticipants.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function handle(): void
// Delete the job if it is older than 60 seconds
if ($messageAgeInSeconds > 60) {
$this->delete(); // or use $this->fail() if you want to mark it as failed

return;
}

Expand Down
7 changes: 4 additions & 3 deletions src/Livewire/Chat/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ public function _finishUpload($name, $tmpPath, $isMultiple)
app('livewire')->updateProperty($this, $name, $files);
}

public function resetAttachmentErrors()
{

function resetAttachmentErrors() {
$this->resetErrorBag(['media', 'files']);

$this->resetErrorBag(['media','files']);

}

public function listenBroadcastedMessage($event)
{

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Jobs/NotifyParticipantsJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

test('it does not notify participants if and deltes job if message is older than 60 Seconds ', function () {

// Bus::fake();
// Bus::fake();
Event::fake();
$auth = User::factory()->create();

Expand Down

0 comments on commit 21a41af

Please sign in to comment.