Set the payrate for the ranks #443 (#586)

This commit is contained in:
Nabeel S
2020-02-24 17:52:49 -05:00
committed by GitHub
parent 11bbcd1df7
commit 30786b7b27

View File

@@ -18,8 +18,10 @@ class RankImport extends BaseImporter
$rows = $this->db->readRows($this->table, $this->idField, $start);
foreach ($rows as $row) {
$rank = Rank::firstOrCreate(['name' => $row->rank], [
'image_url' => $row->rankimage,
'hours' => $row->minhours,
'image_url' => $row->rankimage,
'hours' => $row->minhours,
'acars_base_payrate' => $row->payrate,
'manual_base_payrate' => $row->payrate,
]);
$this->idMapper->addMapping('ranks', $row->rankid, $rank->id);