Skip to content

Commit

Permalink
fix: add equal for range
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Sep 16, 2023
1 parent 1f3ee94 commit 8c591f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/infra/resource/src/database/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl FormDatabase for ConnectionPool {
.questions
.iter()
.rev()
.zip((0..last_insert_id).rev())
.zip((0..=last_insert_id).rev())
.filter(|(q, _)| !q.choices.is_empty())
.flat_map(|(question, question_id)| {
question
Expand Down

0 comments on commit 8c591f4

Please sign in to comment.