Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed May 10, 2024
1 parent 053578e commit 20d131c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/ticket/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,10 @@ async fn export_tickets_for_schema_in_admin<'a>(

for ticket in tickets {
let mut ticket_data = Map::new();
for flow in ticket.get_flows(&mut conn).await.map_err(|err| AppError::internal(err.to_string()))? {
let flows = ticket.get_flows(&mut conn).await.map_err(|err| AppError::internal(err.to_string()))?;
for flow in flows {
let schema_flow = schema_flows.iter().find(|f| f.schema.id == flow.flow.ticket_schema_flow_id).expect("Schema flow not found");
println!("{:?}", flow);

match flow.module {
TicketFlowValue::Form(form) => {
Expand Down

0 comments on commit 20d131c

Please sign in to comment.