Skip to content

Commit

Permalink
Adding OIs to all new controllers
Browse files Browse the repository at this point in the history
Previously, controllers in the DB but not on roster who later joined the
facility wouldn't get OIs assigned.
  • Loading branch information
Celeo committed Oct 14, 2024
1 parent cbbb2c3 commit 50436da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vzdv-tasks/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async fn update_controller_record(db: &SqlitePool, controller: &RosterMember) ->
.execute(db)
.await?;
// for controllers new to the ARTCC, also set their default OIs
if controller_record.is_none() {
if controller_record.is_none() || !controller_record.unwrap().is_on_roster {
let in_use = retrieve_all_in_use_ois(db).await?;
let new_ois = generate_operating_initials_for(
&in_use,
Expand Down

0 comments on commit 50436da

Please sign in to comment.