Skip to content

Commit dd8477c

Browse files
dprateek996Ryukemeisterdhairyashiil
authored
fix(typo): correct spelling of organization in error message (calcom#26035)
Co-authored-by: Rajiv Sahal <sahalrajiv-extc@atharvacoe.ac.in> Co-authored-by: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com>
1 parent aebfd49 commit dd8477c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)