feat(server): resolved lint issue

This commit is contained in:
Akhil Mohan
2024-03-25 01:06:43 +05:30
parent b5d7699b8d
commit cd0e1a87cf
2 changed files with 6 additions and 6 deletions

View File

@@ -146,7 +146,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
offset: req.query.startIndex, offset: req.query.startIndex,
limit: req.query.count, limit: req.query.count,
filter: req.query.filter, filter: req.query.filter,
orgId: req.permission.orgId as string orgId: req.permission.orgId
}); });
return users; return users;
} }
@@ -184,7 +184,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
handler: async (req) => { handler: async (req) => {
const user = await req.server.services.scim.getScimUser({ const user = await req.server.services.scim.getScimUser({
userId: req.params.userId, userId: req.params.userId,
orgId: req.permission.orgId as string orgId: req.permission.orgId
}); });
return user; return user;
} }
@@ -243,7 +243,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
email: primaryEmail, email: primaryEmail,
firstName: req.body.name.givenName, firstName: req.body.name.givenName,
lastName: req.body.name.familyName, lastName: req.body.name.familyName,
orgId: req.permission.orgId as string orgId: req.permission.orgId
}); });
return user; return user;
@@ -280,7 +280,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
handler: async (req) => { handler: async (req) => {
const user = await req.server.services.scim.updateScimUser({ const user = await req.server.services.scim.updateScimUser({
userId: req.params.userId, userId: req.params.userId,
orgId: req.permission.orgId as string, orgId: req.permission.orgId,
operations: req.body.Operations operations: req.body.Operations
}); });
return user; return user;
@@ -330,7 +330,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
handler: async (req) => { handler: async (req) => {
const user = await req.server.services.scim.replaceScimUser({ const user = await req.server.services.scim.replaceScimUser({
userId: req.params.userId, userId: req.params.userId,
orgId: req.permission.orgId as string, orgId: req.permission.orgId,
active: req.body.active active: req.body.active
}); });
return user; return user;

View File

@@ -328,7 +328,7 @@ export const projectMembershipServiceFactory = ({
); );
const hasCustomRole = Boolean(customInputRoles.length); const hasCustomRole = Boolean(customInputRoles.length);
if (hasCustomRole) { if (hasCustomRole) {
const plan = await licenseService.getPlan(actorOrgId as string); const plan = await licenseService.getPlan(actorOrgId);
if (!plan?.rbac) if (!plan?.rbac)
throw new BadRequestError({ throw new BadRequestError({
message: "Failed to assign custom role due to RBAC restriction. Upgrade plan to assign custom role to member." message: "Failed to assign custom role due to RBAC restriction. Upgrade plan to assign custom role to member."