style+done(p2): pint formatting + P2 plan DONE marker
This commit is contained in:
@@ -17,7 +17,7 @@ use Illuminate\Support\Facades\DB;
|
||||
class ProjectService
|
||||
{
|
||||
public function __construct(
|
||||
private readonly OperationsLogger $ops = new OperationsLogger(),
|
||||
private readonly OperationsLogger $ops = new OperationsLogger,
|
||||
) {}
|
||||
|
||||
public function update(Project $project, array $data): Project
|
||||
@@ -163,9 +163,9 @@ class ProjectService
|
||||
->all();
|
||||
|
||||
// Snapshot ДО удаления — после delete() модель недоступна.
|
||||
$tenantId = $project->tenant_id;
|
||||
$tenantId = $project->tenant_id;
|
||||
$projectId = $project->id;
|
||||
$snapshot = $project->toArray();
|
||||
$snapshot = $project->toArray();
|
||||
|
||||
$project->delete(); // hard delete (Project без SoftDeletes); cascade чистит pivot + служебные.
|
||||
|
||||
@@ -241,7 +241,7 @@ class ProjectService
|
||||
userId: auth()->id(),
|
||||
entityType: 'project',
|
||||
entityId: null,
|
||||
event: 'project.bulk_' . $action,
|
||||
event: 'project.bulk_'.$action,
|
||||
payloadBefore: null,
|
||||
payloadAfter: array_merge(['ids' => $ids], $result),
|
||||
ip: request()->ip(),
|
||||
|
||||
Reference in New Issue
Block a user