Skip to content

Commit

Permalink
vingo: yeet
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Dec 5, 2024
1 parent e397e0c commit 3289ef5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions vingo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vingo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vingo"
version = "1.1.0"
version = "1.2.0"
edition = "2021"

[workspace]
Expand Down Expand Up @@ -47,4 +47,3 @@ tracing-subscriber = "=0.3"

migration = { path = "migration" }
dotenvy = "0.15.7"
sea-query = { version = "0.32.0", default-features = false}
3 changes: 0 additions & 3 deletions vingo/src/routes/scans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,11 @@ pub async fn recent(state: State<AppState>) -> ResponseResult<Json<Vec<RecentSca
scan::Column::ScanTime.as_str(),
)))
.join(JoinType::InnerJoin, scan::Relation::Card.def())
.join(JoinType::InnerJoin, card::Relation::User.def())
.filter(scan::Column::ScanTime.gt(fourteen_days_ago))
.order_by_asc(card::Column::UserId)
.order_by_asc(Expr::cust(format!(
"DATE({})",
scan::Column::ScanTime.as_str()
)))
.order_by_asc(scan::Column::Id)
.into_model::<RecentScanItem>()
.all(&state.db)
.await
Expand Down

0 comments on commit 3289ef5

Please sign in to comment.