Minor fixes for import

This commit is contained in:
David Bomba 2022-07-05 08:26:41 +10:00
parent 0a2a4e91e2
commit 6d54db8507
2 changed files with 6 additions and 4 deletions

View File

@ -275,7 +275,12 @@ class Import implements ShouldQueue
info('Completed🚀🚀🚀🚀🚀 at '.now());
unlink($this->file_path);
try{
unlink($this->file_path);
}
catch(\Exception $e){
nlog("problem unsetting file");
}
}
private function fixData()

View File

@ -84,9 +84,6 @@ class TemplateEngine
public function build()
{
if ($this->template == 'email_template_null')
$this->template = 'email_template_purchase_order';
return $this->setEntity()
->setSettingsObject()