Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dieriba committed Jan 24, 2025
1 parent ecf2222 commit 7a0b4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/windmill-api/src/postgres_triggers/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async fn listen_to_transactions(
Some((update.o_id, relations.body_to_json((update.o_id, update.new_tuple)), "update"))
}
Delete(delete) => {
let body = delete.old_tuple.unwrap_or(delete.key_tuple.unwrap());
let body = delete.old_tuple.unwrap_or_else(|| delete.key_tuple.unwrap());
Some((delete.o_id, relations.body_to_json((delete.o_id, body)), "delete"))
}
};
Expand Down

0 comments on commit 7a0b4d7

Please sign in to comment.