Skip to content

Commit

Permalink
Fix assistance request observer event
Browse files Browse the repository at this point in the history
The email should only be sent when an assistance request is created
not each time it is saved.
  • Loading branch information
mzur committed Nov 29, 2017
1 parent e0c03be commit 1a2fabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Observers/AnnotationAssistanceRequestObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AnnotationAssistanceRequestObserver
*
* @param Ananas $request
*/
public function saved(Ananas $request)
public function created(Ananas $request)
{
$request->notify(new AnanasNotification);
}
Expand Down

0 comments on commit 1a2fabf

Please sign in to comment.