Fix multiple notifications send to PIC at one time

- fix by removing previous scheduled notifications job before updating the notification configurations
This commit is contained in:
Afiq Hamzah
2024-06-04 18:48:06 +08:00
parent 052f65307d
commit cbf6bd5f1f
7 changed files with 65 additions and 98 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"window.title": "[ ${rootNameShort} ] ➡️ ${dirty}${activeEditorMedium} ${separator}[Branch: test-simulator-nisha]"
}
@@ -1,34 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateJobStatuses extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('job_statuses', function (Blueprint $table) {
$table->id();
$table->string('type');
$table->unsignedBigInteger('job_id');
$table->boolean('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('job_statuses');
}
}