kaiseki icon indicating copy to clipboard operation
kaiseki copied to clipboard

countObjects does not work on User class, returns 0 (zero)

Open markmssd opened this issue 8 years ago • 1 comments

I noticed that in order to make it work, we need to pass it as '_User' I haven't tried it yet, but I'm assuming it would also be the same thing for the other default classes (Role, Session, Installation)

It would be great to have it taken care of automatically.

e.g.

 if(className == 'User') className = '_' + className;
 if(className == 'Role') className = '_' + className;
 if(className == 'Session') className = '_' + className;
 if(className == 'Installation') className = '_' + className;

in the countObject method.

Let me know what you think. I will PR it if it makes sense!

markmssd avatar Dec 30 '15 05:12 markmssd

Sorry for the late reply. For sure, please send a PR for a fix. A test case would be great too :)

shiki avatar Jan 11 '16 18:01 shiki