Merge pull request 'Added log info in sftp file' (#1078) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1078
This commit was merged in pull request #1078.
This commit is contained in:
2026-09-22 11:18:11 +00:00

View File

@@ -37,7 +37,7 @@ class ProcessSftpFiles extends Command
foreach ($folders as $folder) {
$this->info("Checking folder: $folder");
Log::info("Checking folder: $folder");
try {
@@ -45,7 +45,7 @@ class ProcessSftpFiles extends Command
$files = Storage::disk('ftp')->files($folder);
foreach ($files as $file) {
$this->info("File: " . $file);
Log::info("File: " . $file);
$allFiles[] = $file;
}
@@ -206,7 +206,7 @@ class ProcessSftpFiles extends Command
->where('aufnr', ($row['aufnr']))
->get();
$existingRecord = $existingRecords->where('gernr', $row['gernr'])->first();
$lastStatus = $existingRecords->max('pending_released_status');