mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Fix meta services for recurrences.
This commit is contained in:
@@ -34,6 +34,21 @@ use Log;
|
||||
*/
|
||||
class RecurrenceDestroyService
|
||||
{
|
||||
/**
|
||||
* Delete recurrence by ID
|
||||
*
|
||||
* @param int $recurrenceId
|
||||
*/
|
||||
public function destroyById(int $recurrenceId): void
|
||||
{
|
||||
$recurrence = Recurrence::find($recurrenceId);
|
||||
if (null === $recurrence) {
|
||||
return;
|
||||
}
|
||||
$this->destroy($recurrence);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete recurrence.
|
||||
*
|
||||
@@ -69,19 +84,4 @@ class RecurrenceDestroyService
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete recurrence by ID
|
||||
*
|
||||
* @param int $recurrenceId
|
||||
*/
|
||||
public function destroyById(int $recurrenceId): void
|
||||
{
|
||||
$recurrence = Recurrence::find($recurrenceId);
|
||||
if (null === $recurrence) {
|
||||
return;
|
||||
}
|
||||
$this->destroy($recurrence);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user