Skip to content

Commit

Permalink
style: apply pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Oct 21, 2023
1 parent 65184ec commit 010b806
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/infra/resource/src/database/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl FormDatabase for ConnectionPool {
).collect_vec()
)
.await?
.unwrap_or_default()
.unwrap()
.last_insert_id();

let choices_active_values = form_question_update_schema
Expand All @@ -468,8 +468,7 @@ impl FormDatabase for ConnectionPool {
"INSERT INTO form_choices (question_id, choice) VALUES (?, ?)",
choices_active_values.into_iter().map(|value| value.into()),
)
.await?
.unwrap_or_default();
.await?;

Ok(())
}
Expand Down

0 comments on commit 010b806

Please sign in to comment.