1
0

fix updates route (#667)

This commit is contained in:
Geometrically
2023-08-04 22:52:17 -07:00
committed by GitHub
parent c370da2fef
commit 5637d37ee1
2 changed files with 4 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ pub async fn process_payout(
client: &clickhouse::Client,
) -> Result<(), ApiError> {
let start: DateTime<Utc> = DateTime::from_utc(
Utc::now()
(Utc::now() - Duration::days(1))
.date_naive()
.and_hms_nano_opt(0, 0, 0, 0)
.unwrap_or_default(),