Skip to content

Commit

Permalink
Ensure the 'import' option is set to true when callbacks are passed t…
Browse files Browse the repository at this point in the history
…o service.create in the importBundle function within collection-bundles.service
  • Loading branch information
seansica committed Nov 6, 2023
1 parent a5fc4e7 commit 3fa882a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/collection-bundles-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ exports.importBundle = function(collection, data, options, callback) {
});
}
else {
service.create(newObject, function (err, savedObject) {
service.create(newObject, { import: true }, function (err, savedObject) {
if (err) {
if (err.message === service.errors.duplicateId) {
// We've checked for this already, so this shouldn't occur
Expand Down

0 comments on commit 3fa882a

Please sign in to comment.