Open MHamzaRajput opened 1 year ago
on noAlias = true
Before:
roles.belongsToMany(permissions, { as: 'permissionIdPermissions', through: rolePermissions, foreignKey: "roleId", otherKey: "permissionId" });
After:
roles.belongsToMany(permissions, { through: rolePermissions, foreignKey: "roleId", otherKey: "permissionId" });
on noAlias = true
Before:
After: