kaiseki
kaiseki copied to clipboard
countObjects does not work on User class, returns 0 (zero)
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!
Sorry for the late reply. For sure, please send a PR for a fix. A test case would be great too :)