Validate expenses query.
This commit is contained in:
@@ -13,7 +13,8 @@ pub fn create_router() -> axum::Router<PgPool> {
|
||||
|
||||
#[tracing::instrument(skip(pool))]
|
||||
async fn get_expenses(State(pool): State<PgPool>) -> Result<Json<Vec<Expense>>, AppError> {
|
||||
let rows = sqlx::query_as::<_, RecurringExpenseRow>(
|
||||
let rows = sqlx::query_as!(
|
||||
RecurringExpenseRow,
|
||||
r#"
|
||||
SELECT
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user