I take it back

i have a function after it that calls a splice of an index of -1, which 
seems like it gets rid of the last element
My other environments work because the index was >0 (search for specific 
index, where -1 was not found)

Back to sanity

On Tuesday, January 5, 2016 at 4:16:49 PM UTC-5, A wrote:
>
> Need suggestions, going crazy here
>
> I am missing my last row of my object array called: data
>
> console.log(data) //has 80 rows
> Users.find({"_id": {$in: ids}}, {'_id':1, 'Fullname':1}, function(err, 
> results) {  //i've used this query numerous times thought the whole site, 
> nothing new
>     console.log(data) //has 79 rows
>       //... i do some stuff, but doesnt really matter ...//
> });
>                 
>
> Right after I run the mongoose  Users.find, the last element disappears; 
> makes no sense to my why.  This happens every time, for every instance of 
> the code run
> I do have some code above it and after it, but I narrowed it down to these 
> 3 lines.  Any Ideas? suggestions?  Row counts vary between execution 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/2ca5569a-4a3b-45ae-86e5-7f692e95ac56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to