Update slack_* properties to webhook_*

This commit is contained in:
Marcus Moore
2023-03-22 14:43:00 -07:00
parent e8e1ada776
commit fe6295a5e4
16 changed files with 39 additions and 44 deletions
@@ -37,7 +37,7 @@ class CheckoutAccessoryNotification extends Notification
{
$notifyBy = [];
if (Setting::getSettings()->slack_endpoint != '') {
if (Setting::getSettings()->webhook_endpoint != '') {
$notifyBy[] = 'slack';
}
@@ -78,7 +78,7 @@ class CheckoutAccessoryNotification extends Notification
$admin = $this->admin;
$item = $this->item;
$note = $this->note;
$botname = ($this->settings->slack_botname) ? $this->settings->slack_botname : 'Snipe-Bot';
$botname = ($this->settings->webhook_botname) ? $this->settings->webhook_botname : 'Snipe-Bot';
$fields = [
'To' => '<'.$target->present()->viewUrl().'|'.$target->present()->fullName().'>',