mirror of
https://github.com/documenso/documenso.git
synced 2026-08-25 07:42:28 +10:00
chore(trpc): type-safety cleanups across routers
This commit is contained in:
@@ -148,7 +148,7 @@ export const updateOrganisationMemberRoleRoute = adminProcedure
|
||||
return;
|
||||
}
|
||||
|
||||
const targetRole = role as OrganisationMemberRole;
|
||||
const targetRole = role;
|
||||
|
||||
if (currentOrganisationRole === targetRole) {
|
||||
throw new AppError(AppErrorCode.INVALID_REQUEST, {
|
||||
|
||||
Reference in New Issue
Block a user