mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
refactor: use copy_limit if greater than 0
This commit is contained in:
parent
9ea5fa80f8
commit
aabb2822e0
1 changed files with 3 additions and 3 deletions
|
@ -36,10 +36,10 @@ impl MigrationTrait for Migration {
|
|||
.await?
|
||||
.unwrap()
|
||||
.try_get_by_index::<i64>(0)?;
|
||||
let copy_limit = if copy_limit == 0 {
|
||||
total_num
|
||||
} else {
|
||||
let copy_limit = if copy_limit > 0 {
|
||||
copy_limit
|
||||
} else {
|
||||
total_num
|
||||
};
|
||||
println!(
|
||||
"Copying {} out of {} entries in antenna_note.",
|
||||
|
|
Loading…
Add table
Reference in a new issue