style+done(p2): pint formatting + P2 plan DONE marker
This commit is contained in:
@@ -4,8 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\Concerns\ResolvesAdminUserId;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Jobs\Supplier\CsvReconcileJob;
|
||||
use App\Models\Project;
|
||||
use App\Models\SaasAdminAuditLog;
|
||||
@@ -148,13 +148,13 @@ final class AdminSupplierIntegrationController extends Controller
|
||||
]);
|
||||
|
||||
SaasAdminAuditLog::create([
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.manual_queue_resolved',
|
||||
'target_type' => 'manual_queue_item',
|
||||
'target_id' => $row->id,
|
||||
'payload_after' => ['external_id' => $found, 'platform' => $row->platform],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.manual_queue_resolved',
|
||||
'target_type' => 'manual_queue_item',
|
||||
'target_id' => $row->id,
|
||||
'payload_after' => ['external_id' => $found, 'platform' => $row->platform],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'requires_approval' => false,
|
||||
]);
|
||||
|
||||
@@ -184,14 +184,14 @@ final class AdminSupplierIntegrationController extends Controller
|
||||
);
|
||||
|
||||
SaasAdminAuditLog::create([
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.export_mode_set',
|
||||
'target_type' => 'system_setting',
|
||||
'target_id' => null,
|
||||
'payload_before' => $prevMode !== null ? ['mode' => $prevMode] : null,
|
||||
'payload_after' => ['mode' => $data['mode']],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.export_mode_set',
|
||||
'target_type' => 'system_setting',
|
||||
'target_id' => null,
|
||||
'payload_before' => $prevMode !== null ? ['mode' => $prevMode] : null,
|
||||
'payload_after' => ['mode' => $data['mode']],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'requires_approval' => false,
|
||||
]);
|
||||
|
||||
@@ -283,14 +283,14 @@ final class AdminSupplierIntegrationController extends Controller
|
||||
}
|
||||
|
||||
SaasAdminAuditLog::create([
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.projects_destroyed',
|
||||
'target_type' => 'supplier_projects_bulk',
|
||||
'target_id' => null,
|
||||
'payload_before' => ['ids' => $data['ids']],
|
||||
'payload_after' => ['deleted' => $deleted, 'failures_count' => count($failures)],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'admin_user_id' => $this->resolveAdminUserId($request, 'supplier-integration@system.stub', 'Supplier Integration Stub'),
|
||||
'action' => 'supplier_integration.projects_destroyed',
|
||||
'target_type' => 'supplier_projects_bulk',
|
||||
'target_id' => null,
|
||||
'payload_before' => ['ids' => $data['ids']],
|
||||
'payload_after' => ['deleted' => $deleted, 'failures_count' => count($failures)],
|
||||
'ip_address' => $request->ip() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent(),
|
||||
'requires_approval' => false,
|
||||
]);
|
||||
|
||||
|
||||
@@ -132,13 +132,13 @@ class SupplierWebhookController extends Controller
|
||||
|
||||
try {
|
||||
DB::table('webhook_log')->insert([
|
||||
'tenant_id' => null,
|
||||
'tenant_id' => null,
|
||||
'raw_payload' => '{}',
|
||||
'source' => 'supplier',
|
||||
'status' => $status,
|
||||
'lead_id' => $leadId,
|
||||
'ip_address' => $request->ip(),
|
||||
'created_at' => now(),
|
||||
'source' => 'supplier',
|
||||
'status' => $status,
|
||||
'lead_id' => $leadId,
|
||||
'ip_address' => $request->ip(),
|
||||
'created_at' => now(),
|
||||
]);
|
||||
} catch (\Throwable) {
|
||||
// Never let logging failure break the primary response
|
||||
|
||||
Reference in New Issue
Block a user