Skip to content

Commit

Permalink
update corp leave message to allow corp or char info if either is kno…
Browse files Browse the repository at this point in the history
…wn (#86)

Co-authored-by: Akov <[email protected]>
  • Loading branch information
justindh and Akov authored Sep 7, 2023
1 parent e56e4d8 commit 0b70be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Notifications/Corporations/Mail/CharLeftCorpMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function toMail($notifiable)

$corporation = CorporationInfo::find($this->notification->text['corpID']);

if (! is_null($corporation) && ! is_null($character)) {
if (! is_null($corporation) || ! is_null($character)) {

if (! is_null($corporation)) {

Expand Down
2 changes: 1 addition & 1 deletion src/Notifications/Corporations/Slack/CharLeftCorpMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function toSlack($notifiable)

$corporation = CorporationInfo::find($this->notification->text['corpID']);

if (! is_null($corporation) && ! is_null($character)) {
if (! is_null($corporation) || ! is_null($character)) {

$message->attachment(function ($attachment) use ($character, $corporation) {

Expand Down

0 comments on commit 0b70be0

Please sign in to comment.