Skip to content

Commit

Permalink
fix: use correct table reference (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen authored and EdieLemoine committed Dec 20, 2021
1 parent b7ae0f6 commit 79de1eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/CarrierConfigurationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ private static function fetchLegacyCarrierIdMap(): void

$query = new DbQuery();
$query->select('current.id_carrier as current_carrier_id, old.id_carrier as old_carrier_id');
$query->from(Table::withPrefix('carrier'), 'current');
$query->innerJoin(Table::withPrefix('carrier'), 'old', 'old.name = current.name');
$query->from('carrier', 'current');
$query->innerJoin('carrier', 'old', 'old.name = current.name');
$query->where('current.active=1');
$query->where('current.deleted=0');
$query->orderBy('current.id_carrier DESC');
Expand Down

0 comments on commit 79de1eb

Please sign in to comment.