It looks like your addNewProduit expects its callback as the 5th argument, 
but when you call it in fetchNewProductsOfBrand, you're passing a callback 
as the 4th argument.  Your invocation is missing the marque.



On Tuesday, February 18, 2014 8:40:46 AM UTC-6, reda khyatti wrote:
>
> Hi all,
>
> I am a newbie in Node, and I am trying to rewrite a program that syncs 
> databases in a non blocking env (Node). So the first task is to make a 
> request to a SQL server, which I did successfully using 'mssql'. This 
> request retruns more than 30k rows that I would like to persist to a 
> MongoLab Document.
> I have therefore implemented the model and the method to save the row. The 
> operation at first look good, since I am able to write things to the db, 
> however I get this error after adding few hundreds of rows:
>
> node_modules/mongoose/lib/utils.js:413
>         throw err;
>               ^
> TypeError: undefined is not a function
>
> I can't see why is this happening. Can anyone help here please?
>
> Regards 
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to