diff --git a/app/graph/mutations/graphql_crud_operations.rb b/app/graph/mutations/graphql_crud_operations.rb index 21b793f73..b5c07ea73 100644 --- a/app/graph/mutations/graphql_crud_operations.rb +++ b/app/graph/mutations/graphql_crud_operations.rb @@ -11,7 +11,7 @@ def self.safe_save(obj, attrs, parent_names = []) begin obj.save_with_version! rescue RuntimeError => e - if e.message.include?("This item already exists") && + if e.message.include?("\"code\":9") && obj.is_a?(ProjectMedia) && obj.set_fact_check.present? && obj.set_original_claim.present?