commit12
This commit is contained in:
@@ -23,7 +23,7 @@ final class DraftValues
|
||||
{
|
||||
$result = [];
|
||||
foreach ($lines as $index => $line) {
|
||||
$service = DB::table('a_services')->where('tenant_id', $scope['tenant_id'])->where('company_id', $scope['company_id'])->where('id', $line['service_id'])->first();
|
||||
$service = \App\Shared\Context\ModuleRecords::query('a_services')->where('tenant_id', $scope['tenant_id'])->where('company_id', $scope['company_id'])->where('id', $line['service_id'])->first();
|
||||
abort_unless($service, 403, 'Serviço fora da empresa autorizada.');
|
||||
$result[] = ['service_id' => (int) $service->id, 'service_name' => $service->name,
|
||||
'description' => $line['description'] ?? null,
|
||||
|
||||
Reference in New Issue
Block a user