Skip to content

Commit aaa9ff6

Browse files
add parameter url
1 parent 2862904 commit aaa9ff6

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎ProcessMaker/Models/Notification.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @OA\Property(property="processName", type="string"),
3232
* @OA\Property(property="userName", type="string"),
3333
* @OA\Property(property="request_id", type="string"),
34+
* @OA\Property(property="url", type="string"),
3435
* ),
3536
* @OA\Schema(
3637
* schema="Notification",
@@ -59,6 +60,7 @@ class Notification extends ProcessMakerModel
5960
'notifiable_id',
6061
'data',
6162
'read_at',
63+
'url',
6264
];
6365

6466
/**

‎database/factories/ProcessMaker/Models/NotificationFactory.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function definition()
2323
'notifiable_type' => $this->faker->word(),
2424
'notifiable_id' => $this->faker->numberBetween(1),
2525
'data' => '[]',
26+
'url' => '',
2627
];
2728
}
2829
}

‎database/migrations/2023_01_20_184154_create_notification_virtual_column_url.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public function up()
1919

2020
DB::table('notifications')->whereNull('read_at')
2121
->lazyById()->each(function ($notification) {
22-
2322
$data = json_decode($notification->data, true);
2423
$url = $data['url'] ?? null;
2524
if ($url) {

0 commit comments

Comments
 (0)