Removed commented code

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-01-13 01:32:28 -08:00
parent 8f4ec95fbb
commit eb8f23a888
2 changed files with 3 additions and 4 deletions

View file

@ -245,7 +245,9 @@ class ViewAssetsController extends Controller
$data_uri = e($request->get('signature_output')); $data_uri = e($request->get('signature_output'));
$encoded_image = explode(',', $data_uri); $encoded_image = explode(',', $data_uri);
$decoded_image = base64_decode($encoded_image[1]); $decoded_image = base64_decode($encoded_image[1]);
file_put_contents($path.'/'.$sig_filename, $decoded_image);
Storage::putFileAs($path, $decoded_image, $sig_filename);
//file_put_contents($path.'/'.$sig_filename, $decoded_image);
} }
$logaction = new Actionlog(); $logaction = new Actionlog();

View file

@ -57,7 +57,6 @@ class ItemImportRequest extends FormRequest
} }
// We submit as csv field: column, but the importer is happier if we flip it here. // We submit as csv field: column, but the importer is happier if we flip it here.
$fieldMappings = array_change_key_case(array_flip($import->field_map), CASE_LOWER); $fieldMappings = array_change_key_case(array_flip($import->field_map), CASE_LOWER);
// dd($fieldMappings);
} }
$importer->setCallbacks([$this, 'log'], [$this, 'progress'], [$this, 'errorCallback']) $importer->setCallbacks([$this, 'log'], [$this, 'progress'], [$this, 'errorCallback'])
->setUserId(Auth::id()) ->setUserId(Auth::id())
@ -65,8 +64,6 @@ class ItemImportRequest extends FormRequest
->setShouldNotify($this->has('send-welcome')) ->setShouldNotify($this->has('send-welcome'))
->setUsernameFormat('firstname.lastname') ->setUsernameFormat('firstname.lastname')
->setFieldMappings($fieldMappings); ->setFieldMappings($fieldMappings);
// $logFile = storage_path('logs/importer.log');
// \Log::useFiles($logFile);
$importer->import(); $importer->import();
return $this->errors; return $this->errors;