aaspai-authx 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/express/index.cjs +1 -1
- package/dist/express/index.cjs.map +1 -1
- package/dist/express/index.js +1 -1
- package/dist/express/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +1 -1
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.js +1 -1
- package/dist/nest/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ var AuthAdminService = class {
|
|
|
509
509
|
return user;
|
|
510
510
|
}
|
|
511
511
|
async assignRealmRole(userId, roleName) {
|
|
512
|
-
const role = await RolePermissionModel.findOne({
|
|
512
|
+
const role = await RolePermissionModel.findOne({ role: roleName });
|
|
513
513
|
if (!role) throw new Error(`Role not found: ${roleName}`);
|
|
514
514
|
await OrgUser.findOneAndUpdate(
|
|
515
515
|
{ id: userId },
|