Skip to content

Commit

Permalink
fix: re-enable parentId check
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Dec 16, 2024
1 parent 7da3c83 commit b531844
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/bin/core_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1676,13 +1676,12 @@ async fn data_sources_documents_upsert(
match &payload.parent_id {
Some(parent_id) => {
if payload.parents.get(1) != Some(parent_id) {
// TODO(fontanierh): Temporary, as we need to let some jobs go through.
// return error_response(
// StatusCode::BAD_REQUEST,
// "invalid_parent_id",
// "Failed to upsert document - parents[1] and parent_id should be equal",
// None,
// );
return error_response(
StatusCode::BAD_REQUEST,
"invalid_parent_id",
"Failed to upsert document - parents[1] and parent_id should be equal",
None,
);
}
}
None => {
Expand Down

0 comments on commit b531844

Please sign in to comment.