fix: update fixed
This commit is contained in:
@@ -151,6 +151,11 @@ public function packageUpdate(Request $request, PackageName $packageName, Remind
|
||||
'data' => 'nullable|array',
|
||||
]);
|
||||
|
||||
// If time is being updated, reset last_repeat to null
|
||||
if (isset($data['time']) && $reminder->time != $data['time']) {
|
||||
$data['last_repeat'] = null;
|
||||
}
|
||||
|
||||
$reminder->update($data);
|
||||
|
||||
return response()->json($reminder);
|
||||
|
||||
Reference in New Issue
Block a user