Skip to content

Commit b78db8c

Browse files
authored
[Chore] Fixed location of setting migrations (alexjustesen#1219)
1 parent 6efa8f4 commit b78db8c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

app/Actions/Notifications/SendDiscordTestNotification.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ public function handle(array $webhooks)
2323

2424
foreach ($webhooks as $webhook) {
2525
$payload = [
26-
'content' => '👋 Testing the Webhook notification channel.',
26+
'content' => '👋 Testing the Discord notification channel.',
2727
];
28+
2829
// Send the request using Laravel's HTTP client
2930
$response = Http::post($webhook['discord_webhook_url'], $payload);
3031
}
3132

3233
Notification::make()
33-
->title('Test webhook notification sent.')
34+
->title('Test Discord notification sent.')
3435
->success()
3536
->send();
3637
}

database/migrations/2023_09_11_144858_create_webhook_notification_settings.php renamed to database/settings/2023_09_11_144858_create_webhook_notification_settings.php

File renamed without changes.

database/migrations/2024_02_19_000000_create_discord_notification_settings.php renamed to database/settings/2024_02_22_144650_create_discord_notification_settings.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
return new class extends SettingsMigration
66
{
7-
/**
8-
* Run the migrations.
9-
*/
107
public function up(): void
118
{
129
$this->migrator->add('notification.discord_enabled', false);

0 commit comments

Comments
 (0)