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 5a3b2f0 commit ae3ba7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vingo/Cargo.lock

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

2 changes: 1 addition & 1 deletion 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
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 ae3ba7d

Please sign in to comment.