yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
826 stars 261 forks source link

Admin collections count #343

Open VitaliiZhukov opened 8 years ago

VitaliiZhukov commented 8 years ago

Hi there! Is there a bug in counting collections items? All collections except users are greater per one than real value. In /lib/server/publish.coffee line 36 counting starts from 1. I suppose it should start from 0.

_.each collectionsWithoutCustomCounter, (collection, name) ->
        id = new Mongo.ObjectID
        count = 1

        ready = false

PS Thanks for your work.

zaklampert commented 8 years ago

+1

Thanks for the quick solve, @VitaliiZhukov