Skip to content

Commit 37ff3f8

Browse files
committed
Role: use .env for slack webhooks, not meta
1 parent d45308e commit 37ff3f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/HMS/Entities/Role.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ public function setRetained($retained): Role
274274
public function routeNotificationForSlack(): string
275275
{
276276
if ($this->name = self::TEAM_TRUSTEES) {
277-
return Meta::get('trustee_slack_webhook');
277+
return env('TRUSTEE_SLACK_WEBHOOK', '');
278278
} else {
279-
return Meta::get('team_slack_webhook');
279+
return env('TEAM_SLACK_WEBHOOK', '');
280280
}
281281
}
282282
}

0 commit comments

Comments
 (0)