Skip to content

Commit dd8477c

Browse files
dprateek996Ryukemeisterdhairyashiil
authored
fix(typo): correct spelling of organization in error message (#26035)
Co-authored-by: Rajiv Sahal <[email protected]> Co-authored-by: Dhairyashil Shinde <[email protected]>
1 parent aebfd49 commit dd8477c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/trpc/server/routers/viewer/organizations/updateUser.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const updateUserHandler = async ({ ctx, input }: UpdateUserOptions) => {
4141
const { id: userId, organizationId } = user;
4242

4343
if (!organizationId)
44-
throw new TRPCError({ code: "UNAUTHORIZED", message: "You must be a member of an organizaiton" });
44+
throw new TRPCError({ code: "UNAUTHORIZED", message: "You must be a member of an organization" });
4545

4646
// Is requested user a member of the organization?
4747
const requestedMember = await prisma.membership.findFirst({

0 commit comments

Comments
 (0)