1
0
forked from poc/pds

Merge pull request 'Added created_by value if not exist' (#374) from ranjith-dev into master

Reviewed-on: poc/pds#374
This commit is contained in:
2026-02-23 09:43:42 +00:00

View File

@@ -209,6 +209,11 @@ class ProcessOrderImporter extends Importer
// $warnMsg[] = 'User not found';
// }
if (! $createdBy) {
$createdBy = Filament::auth()->user()->name;
$updatedBy = Filament::auth()->user()->name;
}
if (! empty($warnMsg)) {
throw new RowImportFailedException(implode(', ', $warnMsg));
}