diff --git a/src/utilities/userTagsPaginationUtils/parseUserTagMemberWhere.ts b/src/utilities/userTagsPaginationUtils/parseUserTagMemberWhere.ts index 6dfa10bc1c..5f3c8a7ec7 100644 --- a/src/utilities/userTagsPaginationUtils/parseUserTagMemberWhere.ts +++ b/src/utilities/userTagsPaginationUtils/parseUserTagMemberWhere.ts @@ -30,7 +30,7 @@ export function parseUserTagMemberWhere( if (!where.firstName && !where.lastName) { errors.push({ message: `Atleast one of firstName or lastName should be provided`, - path: ["whereUserNameInput"], + path: ["where"], }); return { @@ -43,7 +43,7 @@ export function parseUserTagMemberWhere( ) { errors.push({ message: "Invalid firstName provided. It must be a string.", - path: ["whereUserTagUserNameInput"], + path: ["whereFirstName"], }); return { @@ -56,7 +56,7 @@ export function parseUserTagMemberWhere( ) { errors.push({ message: "Invalid lastName provided. It must be a string.", - path: ["whereUserTagUserNameInput"], + path: ["whereLastName"], }); return { diff --git a/src/utilities/userTagsPaginationUtils/parseUserTagSortedBy.ts b/src/utilities/userTagsPaginationUtils/parseUserTagSortedBy.ts index e79bd9b63d..217d6b90b0 100644 --- a/src/utilities/userTagsPaginationUtils/parseUserTagSortedBy.ts +++ b/src/utilities/userTagsPaginationUtils/parseUserTagSortedBy.ts @@ -29,8 +29,8 @@ export function parseUserTagSortedBy( if (sortedBy.id !== "DESCENDING" && sortedBy.id !== "ASCENDING") { errors.push({ message: - "Invalid sortedByInput provided. It must be a of type SortedByOrder.", - path: ["sortUserTagInput"], + "Invalid sortedById provided. It must be a of type SortedByOrder.", + path: ["sortedById"], }); return { diff --git a/src/utilities/userTagsPaginationUtils/parseUserTagWhere.ts b/src/utilities/userTagsPaginationUtils/parseUserTagWhere.ts index 19ec925df4..bd2adae823 100644 --- a/src/utilities/userTagsPaginationUtils/parseUserTagWhere.ts +++ b/src/utilities/userTagsPaginationUtils/parseUserTagWhere.ts @@ -28,7 +28,7 @@ export function parseUserTagWhere( if (typeof where.name.starts_with !== "string") { errors.push({ message: "Invalid name provided. It must be a string.", - path: ["whereUserTagNameInput"], + path: ["whereName"], }); return {