chestApi = createChestWithContents{
var chest = req.body;
var contents = req.body.contents;
chest.save(function(err, chest) {
async.each(contents, function(content) {
content.save()....
}, function(done) {
return res.status.(200).. ///OK
});
});
}
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGOR8-2A8LGnQugzH92quVwEDCiGOBExp7_mq%3DAtjp-LaDt4_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0bb3416a-c622-40ea-a5ab-bfcd93a173fe%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/SdUS7BE6eRQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGOR8-34y1CxPPoHDVQ7YsdaS-Mi9MwiW2DEKuYRTP2EH6ZMAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAHp1eaOfYOZULSihvQnz_5ov_n%3D5%2Bm2Sw2U0EiSPUS5eb7i9kg%40mail.gmail.com.