|
|
@@ -92,7 +92,7 @@ class Notification extends Component |
|
|
|
// XXX: Unideal as in failures the rollback will leave behind a false notification, |
|
|
|
// but most notifications (all) require flushing the objects first |
|
|
|
// Should be okay as long as implementors bear this in mind |
|
|
|
DB::wrapInTransaction(fn() => DB::persist(Entity\Notification::create([ |
|
|
|
DB::wrapInTransaction(fn () => DB::persist(Entity\Notification::create([ |
|
|
|
'activity_id' => $activity->getId(), |
|
|
|
'target_id' => $target->getId(), |
|
|
|
'reason' => $reason, |
|
|
|