mongodbadapter.adapter is not persist.BatchAdapter
QVllasa opened this issue · comments
Qendrim Vllasa commented
When I try to call AddPolicies on *Enforcer, I get the following error:
panic: interface conversion: *mongodbadapter.adapter is not persist.BatchAdapter: missing method AddPolicies
Currently using:
"github.com/casbin/casbin/v2"
"github.com/casbin/mongodb-adapter/v3"
Yang Luo commented
@QVllasa please use latest v3.1.0: https://github.com/casbin/mongodb-adapter/releases/tag/v3.1.0
Qendrim Vllasa commented
Thanks a lot! Works now perfectly.