mirror of
https://github.com/modrinth/code.git
synced 2026-09-05 06:19:11 +00:00
fix: remove tax compliance env var (#5445)
* fix: remove tax compliance env var * improve tax compliance year logic * bit more tests --------- Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
@@ -11,6 +11,7 @@ use crate::models::payouts::{PayoutMethodType, PayoutStatus, Withdrawal};
|
||||
use crate::queue::payouts::PayoutsQueue;
|
||||
use crate::queue::session::AuthQueue;
|
||||
use crate::routes::ApiError;
|
||||
use crate::routes::internal::globals::tax_compliance_payout_threshold;
|
||||
use crate::util::avalara1099;
|
||||
use crate::util::error::Context;
|
||||
use crate::util::gotenberg::GotenbergClient;
|
||||
@@ -1116,10 +1117,6 @@ async fn update_compliance_status(
|
||||
}
|
||||
}
|
||||
|
||||
fn tax_compliance_payout_threshold() -> Option<Decimal> {
|
||||
ENV.COMPLIANCE_PAYOUT_THRESHOLD.parse().ok()
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct RevenueQuery {
|
||||
pub start: Option<DateTime<Utc>>,
|
||||
|
||||
Reference in New Issue
Block a user