diff --git a/permission/db.go b/permission/db.go index 320c1eb..792a2e6 100644 --- a/permission/db.go +++ b/permission/db.go @@ -114,7 +114,7 @@ func countByCondition(ctx context.Context, cond interface{}) int64 { func isPermissionIDExisted(ctx context.Context, permissionID primitive.ObjectID) bool { var ( - col = database.GetRoleCol() + col = database.GetPermissionCol() ) // Find cond := bson.M{