9 lines
886 B
PHP
9 lines
886 B
PHP
<?php
|
|
ini_set('zend.exception_ignore_args','1');require __DIR__.'/boot-QA.php';
|
|
use Illuminate\Support\Facades\DB;
|
|
$db=DB::connection();$db->beginTransaction();$db->statement('SET TRANSACTION READ ONLY');
|
|
try {
|
|
$documents=DB::table('documents')->whereNull('deleted_at')->get(['id','file_name','source_system','sha256','malware_scan_status','status','storage_key']);
|
|
echo json_encode(['documents'=>$documents,'options'=>array_map(fn($v)=>count($v),app(App\Services\OpportunityClassification::class)->options()['targets']),'users'=>DB::table('users')->whereIn('id',[21,24,25,23,31])->get(['id','name','email_verified_at']),'approval_actors'=>DB::table('business_workflow_transitions')->where('existing_business_id','172aa874-98fc-4bf6-b78f-d2e9a386d345')->whereIn('to_status',['approval_l2','approved'])->pluck('actor_id')],JSON_UNESCAPED_UNICODE).PHP_EOL;
|
|
} finally {$db->rollBack();}
|