Skip to content

Commit

Permalink
Fix Class not found
Browse files Browse the repository at this point in the history
  • Loading branch information
OdunayoDev authored and jdavidbakr committed May 10, 2023
1 parent 9604c1f commit a5530b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MailTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Mail\Events\MessageSent;
use Illuminate\Mail\SentMessage;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use jdavidbakr\MailTracker\Contracts\SentEmailModel;
use jdavidbakr\MailTracker\Events\EmailSentEvent;
Expand Down Expand Up @@ -355,7 +356,7 @@ protected function purgeOldRecords()
Storage::disk(config('mail-tracker.tracker-filesystem'))->delete($filePath);
}
});

MailTracker::sentEmailUrlClickedModel()->newQuery()->whereIn('sent_email_id', $emails->pluck('id'))->delete();
MailTracker::sentEmailModel()->newQuery()->whereIn('id', $emails->pluck('id'))->delete();
}
Expand Down

0 comments on commit a5530b3

Please sign in to comment.