commit12
This commit is contained in:
@@ -68,7 +68,7 @@ final class ServiceCalculation
|
||||
'data' => $b['data'], 'prepared' => $p['data'], 'profile_id' => (int) $profile->id,
|
||||
'profile_version' => (int) $profile->version, 'profile_identifier' => $profile->identifier,
|
||||
'profile' => json_decode($profile->definition, true, 32, JSON_THROW_ON_ERROR), 'policy' => self::POLICY,
|
||||
'source_current_version' => (int) DB::table('a_service_drafts')->where('id',$b['source_id'])->where('tenant_id',$b['tenant_id'])->where('company_id',$b['company_id'])->where('unit_id',$b['unit_id'])->value('version')];
|
||||
'source_current_version' => (int) \App\Shared\Context\ModuleRecords::query('a_service_drafts')->where('id',$b['source_id'])->where('tenant_id',$b['tenant_id'])->where('company_id',$b['company_id'])->where('unit_id',$b['unit_id'])->value('version')];
|
||||
}
|
||||
private function fingerprint(array $input): string { return hash('sha256', json_encode($input, JSON_THROW_ON_ERROR)); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user