From 8c591f42349d251b755b28e8245f9985cee9816a Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Sat, 16 Sep 2023 18:15:26 +0900 Subject: [PATCH] fix: add equal for range --- server/infra/resource/src/database/form.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/infra/resource/src/database/form.rs b/server/infra/resource/src/database/form.rs index e2d4d880..562453a0 100644 --- a/server/infra/resource/src/database/form.rs +++ b/server/infra/resource/src/database/form.rs @@ -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