fix: lint project (#2693)

This commit is contained in:
David Nguyen
2026-05-08 16:04:22 +10:00
committed by GitHub
parent edbf65969b
commit 8671f269e8
1414 changed files with 12867 additions and 24335 deletions
@@ -1,5 +1,3 @@
import { OrganisationGroupType } from '@prisma/client';
import { ORGANISATION_MEMBER_ROLE_PERMISSIONS_MAP } from '@documenso/lib/constants/organisations';
import { AppError, AppErrorCode } from '@documenso/lib/errors/app-error';
import { generateDatabaseId } from '@documenso/lib/universal/id';
@@ -9,6 +7,7 @@ import {
isOrganisationRoleWithinUserHierarchy,
} from '@documenso/lib/utils/organisations';
import { prisma } from '@documenso/prisma';
import { OrganisationGroupType } from '@prisma/client';
import { authenticatedProcedure } from '../trpc';
import {
@@ -68,9 +67,7 @@ export const updateOrganisationMemberRoute = authenticatedProcedure
const currentUser = organisation.members.find((member) => member.userId === userId);
const organisationMemberToUpdate = organisation.members.find(
(member) => member.id === organisationMemberId,
);
const organisationMemberToUpdate = organisation.members.find((member) => member.id === organisationMemberId);
if (!organisationMemberToUpdate || !currentUser) {
throw new AppError(AppErrorCode.NOT_FOUND, { message: 'Organisation member does not exist' });
@@ -121,9 +118,7 @@ export const updateOrganisationMemberRoute = authenticatedProcedure
(group) => group.organisationRole === currentMemberToUpdateOrganisationRole,
);
const newMemberGroup = organisation.groups.find(
(group) => group.organisationRole === data.role,
);
const newMemberGroup = organisation.groups.find((group) => group.organisationRole === data.role);
if (!currentMemberGroup) {
console.error('[CRITICAL]: Missing internal group');