Hi.
I'm trying to access the Id property of an object within the save method of a model, but, it returns me an undefined error.
var campaign = Campaign.create({
deviceId: 1,
campaignTypeId: 1,
campaignStatusId: 1,
campaignPriorityId: 2,
description: 'Testing stuff',
sendBySatellite: false,
file: null,
data: '386690,386691,386692,386693,386694,386695,386696,386697,386698,386699,386700',
});
campaign.save(function(err, data) {
// this returns undefined
});