eur czk can be disabled from now on
This commit is contained in:
@@ -10,7 +10,7 @@ use loco_rs::prelude::*;
|
||||
use sea_orm::{ActiveModelTrait, ColumnTrait, EntityTrait, PaginatorTrait, QueryFilter, Set};
|
||||
|
||||
use crate::models::currencies;
|
||||
use crate::shared::currency::SCALE;
|
||||
use crate::shared::currency::{self, SCALE};
|
||||
|
||||
/// `(code, symbol, default_rate_e4)` — default rate is a placeholder the admin
|
||||
/// is expected to update from the live FX rate.
|
||||
@@ -45,6 +45,8 @@ impl Initializer for CurrencySeeder {
|
||||
.await?;
|
||||
tracing::info!(currency = code, "seeded display currency");
|
||||
}
|
||||
// Prime the process-wide snapshot used by the navbar/settings chrome.
|
||||
currency::refresh_snapshot(&ctx.db).await?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user