Scheduling infrastructure for absolutely everyone.
fix: typos in apps/api/v2 (#21105)
luzpaz446c780d85e8
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.tsindex e99e3c81b84..9aeb6a9be17 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.tsindex 7bf1a554f24..a3161cbd099 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.tsindex 10b825c8631..fe10bdf9895 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.tsindex e492cd17102..074d1b0bac8 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,