Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/Console/Commands/ExportCertificatesProof.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function handle()
$rows = $rows->merge($exRows);
}

// Append SuperOrganiser rows at the END (as requested)
// Append SuperOrganiser rows at the END
if ($soRows->isNotEmpty()) {
$rows = $rows->merge($soRows);
}
Expand Down Expand Up @@ -104,11 +104,9 @@ public function handle()

protected function pickDateColumn(string $table, string $preferred): ?string
{
// Respect requested preference first
if ($preferred === 'event_date' && Schema::hasColumn($table, 'event_date')) return 'event_date';
if ($preferred === 'issued_at' && Schema::hasColumn($table, 'issued_at')) return 'issued_at';
if ($preferred === 'created_at' && Schema::hasColumn($table, 'created_at')) return 'created_at';
// Fallbacks
foreach (['created_at','issued_at','event_date','date'] as $c) {
if (Schema::hasColumn($table, $c)) return $c;
}
Expand Down
Loading