mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
399f80e106
commit
3016b6aaa0
5 files changed
+62
-36
No files matched your search
@@ -27,6 +27,11 @@ class SendDeletedSubTaskNotification
|
||||
*/
|
||||
public function handle(SubTaskDeleted $event)
|
||||
{
|
||||
// Neposielame notifikacie pri mazani konceptov (draftov)
|
||||
if ($event->subtask->is_draft) {
|
||||
return;
|
||||
}
|
||||
|
||||
$receiversArray[] = $event->subtask->user->email;
|
||||
$creator = \App\Models\User::find($event->subtask->created_by);
|
||||
|
||||
|
||||
@@ -31,6 +31,11 @@ class SendEditedSubTaskNotification implements ShouldQueue
|
||||
*/
|
||||
public function handle(SubTaskEdited $event)
|
||||
{
|
||||
// Neposielame notifikacie pre koncepty (drafty)
|
||||
if ($event->subtask->is_draft) {
|
||||
return;
|
||||
}
|
||||
|
||||
// emailova notifikacia sa posiela len ak subtask bol upraveny inym uzivatelom
|
||||
if ($event->subtask->updated_by == $event->subtask->user_id) {
|
||||
return;
|
||||
|
||||
@@ -31,6 +31,11 @@ class SendNewSubTaskEmailNotification implements ShouldQueue
|
||||
*/
|
||||
public function handle(SubTaskCreated $event)
|
||||
{
|
||||
// Neposielame notifikacie pre koncepty (drafty)
|
||||
if ($event->subtask->is_draft) {
|
||||
return;
|
||||
}
|
||||
|
||||
// flag na urovni subtasku - notification_sent
|
||||
// ak existuje este nejaky subtask v ramci master tasku, co ma prazdnu notification_sent, tak mu nastavim 0 a skippujem posielanie emailu
|
||||
// az ked neexistuje uz iny subtask, co ma flag prazdny, tak poslem email a nastavim notification_sent na 1
|
||||
|
||||
Reference in new issue
Block a user