bug fixed

This commit is contained in:
병준 박 2022-09-01 17:56:27 +00:00
parent f16bbdbc61
commit 25b103d36a

View File

@ -355,7 +355,16 @@ impl Composition {
let mut query_pagination = String::new();
if let Some(pagination) = &find_all.pagination {
let page = pagination.page.unwrap_or(1);
let page = match pagination.page {
Some(v) => {
if v < 1 {
1
} else {
v
}
}
None => 1,
};
if let Some(page_size) = pagination.page_size {
write!(
&mut query_pagination,