Skip to content

Commit

Permalink
fix: enable body mapping for upsert endpoint (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr authored Sep 5, 2024
1 parent 9cf4c00 commit d0ebfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrationos-unified/src/unified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ impl UnifiedDestination {

if matches!(
config.action_name,
CrudAction::GetMany | CrudAction::GetOne | CrudAction::Create
CrudAction::GetMany | CrudAction::GetOne | CrudAction::Create | CrudAction::Upsert
) {
let Some(js) = mapping.as_ref().map(|m| &m.to_common_model) else {
return Err(InternalError::invalid_argument(
Expand Down

0 comments on commit d0ebfc7

Please sign in to comment.