From 446c780d85e8c11072ac778ac41f9fc634c4d5e1 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 4 May 2025 11:58:37 -0400 Subject: [PATCH] fix: typos in apps/api/v2 (#21105) Found via `codespell -q 3 -S "*.svg,./apps/web/public/static/locales,./packages/app-store/stripepayment/lib/currencyOptions.ts,./packages/lib/freeEmailDomainCheck/freeEmailDomains.ts" -L afterall,atleast,datea,fo,incase,ist,nam,notin,optionel,perview,reccuring` Closes #21104 --- .../controllers/e2e/emails/confirm-emails.e2e-spec.ts | 8 ++++---- .../2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts | 4 ++-- .../users/index/organizations-users.repository.ts | 6 +++--- apps/api/v2/src/modules/tokens/tokens.repository.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts index e99e3c81b8..9aeb6a9be1 100644 --- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts +++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts @@ -385,7 +385,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => { emailsEnabledSetup.createdBookingUid = responseBody.data.uid; } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); @@ -430,7 +430,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => { emailsEnabledSetup.rescheduledBookingUid = responseBody.data.uid; } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); @@ -459,7 +459,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => { emailsEnabledSetup.rescheduledBookingUid = responseBody.data.uid; } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); @@ -502,7 +502,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => { emailsEnabledSetup.createdBookingUid = responseBody.data.uid; } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts index 7bf1a554f2..a3161cbd09 100644 --- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts +++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts @@ -583,7 +583,7 @@ describe("Bookings Endpoints 2024-08-13", () => { expect(data.rating).toEqual(bookingInThePast.rating); } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); @@ -642,7 +642,7 @@ describe("Bookings Endpoints 2024-08-13", () => { await bookingsRepositoryFixture.deleteById(mockBooking.id); } else { throw new Error( - "Invalid response data - expected booking but received array of possibily recurring bookings" + "Invalid response data - expected booking but received array of possibly recurring bookings" ); } }); diff --git a/apps/api/v2/src/modules/organizations/users/index/organizations-users.repository.ts b/apps/api/v2/src/modules/organizations/users/index/organizations-users.repository.ts index 10b825c863..fe10bdf989 100644 --- a/apps/api/v2/src/modules/organizations/users/index/organizations-users.repository.ts +++ b/apps/api/v2/src/modules/organizations/users/index/organizations-users.repository.ts @@ -38,7 +38,7 @@ export class OrganizationsUsersRepository { member: { teamId: orgId, ...(teamIds && { user: { teams: { some: { teamId: { in: teamIds } } } } }), - // Filter to only get users which have ALL of the assigned attribue options + // Filter to only get users which have ALL of the assigned attribute options ...(attributeQueryOperator === "AND" && { AND: assignedOptionIds.map((optionId) => ({ AttributeToUser: { some: { attributeOptionId: optionId } }, @@ -46,11 +46,11 @@ export class OrganizationsUsersRepository { }), }, ...(emailArray && emailArray.length ? { email: { in: emailArray } } : {}), - // Filter to get users which have AT LEAST ONE of the assigned attribue options + // Filter to get users which have AT LEAST ONE of the assigned attribute options ...(attributeQueryOperator === "OR" && { attributeOption: { id: { in: assignedOptionIds } }, }), - // Filter to get users that have NONE the assigned attribue options + // Filter to get users that have NONE the assigned attribute options ...(attributeQueryOperator === "NONE" && { NOT: { attributeOption: { id: { in: assignedOptionIds } }, diff --git a/apps/api/v2/src/modules/tokens/tokens.repository.ts b/apps/api/v2/src/modules/tokens/tokens.repository.ts index e492cd1710..074d1b0bac 100644 --- a/apps/api/v2/src/modules/tokens/tokens.repository.ts +++ b/apps/api/v2/src/modules/tokens/tokens.repository.ts @@ -149,7 +149,7 @@ export class TokensRepository { this.dbWrite.prisma.refreshToken.create({ data: { // note(Lauris): I am leaving userId because it was before adding ownerId to standardize payload like in the createOAuthTokens function for - // backwards compatability. + // backwards compatibility. secret: this.jwtService.signRefreshToken({ clientId, ownerId: tokenUserId,