From 73ef7d69db746054a4d32f79309fe2bc580d5cc3 Mon Sep 17 00:00:00 2001 From: Hoang Date: Tue, 16 Nov 2021 16:05:37 +0700 Subject: [PATCH] fix isPermissionIDExistedFunc --- permission/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{