Lepozepo / meteor-publish-with-relations

Meteor.js SmartPackage to publish associated collections at once.
https://atmospherejs.com/lepozepo/publish-with-relations
11 stars 4 forks source link

Fix for root object #11

Closed jflecool2 closed 8 years ago

jflecool2 commented 8 years ago

As discussed in this issue: https://github.com/Lepozepo/meteor-publish-with-relations/issues/10 the use of objects were working. mappings: [ { foreign_key: "aList.obj1.obj2.obj3.AnotherList.obj4.Reference", collection: SubThings } ] }) Only, it works unless tje object is the first element (root). Otherwise said, this would not work: mappings: [ { foreign_key: "anObject.aList", collection: SubThings } ] }) because the first part is an Object and not a List. This pull request fix this.

Lepozepo commented 8 years ago

Sweet! Thanks for the PR, I'll review it as soon as I can ^_^

jflecool2 commented 8 years ago

Bump!

Lepozepo commented 8 years ago

Sweet! Thanks @jflecool2