Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuchichan committed Jun 30, 2024
1 parent dd95c47 commit 0aa3cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/src/service/v2/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub async fn get_blocks(
) -> Result<Json<QueryResult<Vec<BlockResponse>>>> {
let mut pool = state.pool.acquire().await?;
let page = params.page.unwrap_or(1);
let page_size = params.page_size.unwrap_or(10);
let page_size = params.page_size.unwrap_or(0);

let sql_total = "SELECT max(height) FROM block";
let row = sqlx::query(sql_total).fetch_one(&mut *pool).await?;
Expand Down

0 comments on commit 0aa3cbd

Please sign in to comment.