fix: typos in several package/ directories (#19495)
* fix: typos in packages/embeds Found via codespell * fix: typos in packages/lib Found via codespell * fix: typos in packages/trpc Found via codespell
This commit is contained in:
1 parent
16a94fe712
commit
97ef32f7ca
27 files changed
+33
-33
No files matched your search
@@ -59,7 +59,7 @@ describe("unlinkConnectedAccount.handler", () => {
|
||||
}
|
||||
`);
|
||||
});
|
||||
it("Should respond with an error message if unlink was unsucessful", async () => {
|
||||
it("Should respond with an error message if unlink was unsuccessful", async () => {
|
||||
const user = await buildMockData(IdentityProvider.CAL);
|
||||
const response = await unlinkConnectedAccountHandler({ ctx: { user } });
|
||||
expect(response).toMatchInlineSnapshot(`
|
||||
|
||||
@@ -23,7 +23,7 @@ const unlinkConnectedAccount = async ({ ctx }: UpdateProfileOptions) => {
|
||||
providerAccountId: user.identityProviderId || "",
|
||||
});
|
||||
} catch {
|
||||
// Fail silenty if we don't have an record in the account table
|
||||
// Fail silently if we don't have a record in the account table
|
||||
}
|
||||
// Fall back to the default identity provider
|
||||
const _user = await prisma.user.update({
|
||||
|
||||
@@ -139,7 +139,7 @@ export const updateProfileHandler = async ({ ctx, input }: UpdateProfileOptions)
|
||||
emailChangeWaitingForVerification: input.email?.toLocaleLowerCase(),
|
||||
};
|
||||
|
||||
// Check to ensure this email isnt in use
|
||||
// Check to ensure this email isn't in use
|
||||
// Don't include email in the data payload if we need to verify
|
||||
delete data.email;
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ export async function getBookings({
|
||||
};
|
||||
|
||||
const [
|
||||
// Quering these in parallel to save time.
|
||||
// Querying these in parallel to save time.
|
||||
// Note that because we are applying `take` to individual queries, we will usually get more bookings then we need. It is okay to have more bookings faster than having what we need slower
|
||||
bookingsQueryUserId,
|
||||
bookingsQueryAttendees,
|
||||
|
||||
@@ -34,7 +34,7 @@ export const adminVerifyHandler = async ({ input }: AdminVerifyOptions) => {
|
||||
if (!foundOrg)
|
||||
throw new TRPCError({
|
||||
code: "FORBIDDEN",
|
||||
message: "This team isnt a org or doesnt exist",
|
||||
message: "This team isn't an org or doesn't exist",
|
||||
});
|
||||
|
||||
const acceptedEmailDomain = foundOrg.members[0].user.email.split("@")[1];
|
||||
|
||||
@@ -40,7 +40,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 memeber of an organizaiton" });
|
||||
throw new TRPCError({ code: "UNAUTHORIZED", message: "You must be a member of an organizaiton" });
|
||||
|
||||
if (!(await isOrganisationAdmin(userId, organizationId))) throw new TRPCError({ code: "UNAUTHORIZED" });
|
||||
|
||||
|
||||
+1
-1
@@ -204,7 +204,7 @@ export const findTeamMembersMatchingAttributeLogicOfRouteHandler = async ({
|
||||
},
|
||||
{
|
||||
enablePerf: _enablePerf,
|
||||
// Reuse same flag for enabling troubleshooter. We would normall use them together
|
||||
// Reuse same flag for enabling troubleshooter. We would normally use them together
|
||||
enableTroubleshooter: _enablePerf,
|
||||
concurrency: _concurrency,
|
||||
}
|
||||
|
||||
@@ -669,7 +669,7 @@ async function _getAvailableSlots({ input, ctx }: GetScheduleOptions): Promise<I
|
||||
}
|
||||
return (
|
||||
!isFutureLimitViolationForTheSlot &&
|
||||
// TODO: Perf Optmization: Slots calculation logic already seems to consider the minimum booking notice and past booking time and thus there shouldn't be need to filter out slots here.
|
||||
// TODO: Perf Optimization: Slots calculation logic already seems to consider the minimum booking notice and past booking time and thus there shouldn't be need to filter out slots here.
|
||||
!isTimeOutOfBounds({ time: slot.time, minimumBookingNotice: eventType.minimumBookingNotice })
|
||||
);
|
||||
});
|
||||
|
||||
@@ -116,7 +116,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
});
|
||||
|
||||
if (!parentTeam?.slug) {
|
||||
throw new Error(`Parent team wth slug: ${parentTeam?.slug} not found`);
|
||||
throw new Error(`Parent team with slug: ${parentTeam?.slug} not found`);
|
||||
}
|
||||
|
||||
const orgUrlPrefix = getOrgFullOrigin(parentTeam.slug);
|
||||
|
||||
Reference in new issue
Block a user