bredikhin / barrels

Simple DB Fixtures for Sails.js
MIT License
85 stars 34 forks source link

Can't manually set foreign key with populate()? #43

Open spacesuitdiver opened 8 years ago

spacesuitdiver commented 8 years ago

I'm having a bit of problem where the app foreignKey isn't set when running barrels.populate(...), looks fine in the barrels.data, any idea what I'm missing? Thanks for the help.

App.json

[
    {
        "id":           "SsQbM0b10QCuWxMj11tnUIh0OJBDX64sttSsrR5U",
        "name":         "My App",
        "createdBy":    1,
        "ownedBy":  1,
        "createdAt":    "2015-10-30T22:19:58.921Z"
    }
]

AuthStrategy.json

[
    {
        "type": "facebook",
        "id": 1,
        "ownedBy": 2,
        "app": "SsQbM0b10QCuWxMj11tnUIh0OJBDX64sttSsrR5U",
        "accessToken": "..."
    }
]