Closed Dids closed 7 years ago
Here's my model
import { Model } from 'mongorito' class Commit extends Model { collection () { return 'my_api_commits' } } module.exports = Commit
It ends up as a collection called commits, so it's like it's not even calling the method.
commits
What if you try it with static collection?
@mbale Could you elaborate on that?
Confirmed the bug, thanks for reporting!
https://github.com/vadimdemedes/mongorito/commit/4977e459a0acabc87fdd155875ed07ddd5fb26e1 should fix this.
Released 3.0.2 with a fix.
3.0.2
Here's my model
It ends up as a collection called
commits
, so it's like it's not even calling the method.