fix(typo): correct spelling of organization in error message (#26035)
Co-authored-by: Rajiv Sahal <[email protected]> Co-authored-by: Dhairyashil Shinde <[email protected]>
This commit is contained in:
1 file changed
+1
-1
@@ -41,7 +41,7 @@ export const updateUserHandler = async ({ ctx, input }: UpdateUserOptions) => {
|
||||
const { id: userId, organizationId } = user;
|
||||
|
||||
if (!organizationId)
|
||||
throw new TRPCError({ code: "UNAUTHORIZED", message: "You must be a member of an organizaiton" });
|
||||
throw new TRPCError({ code: "UNAUTHORIZED", message: "You must be a member of an organization" });
|
||||
|
||||
// Is requested user a member of the organization?
|
||||
const requestedMember = await prisma.membership.findFirst({
|
||||
|
||||
Reference in new issue
Block a user