Skip to content

Commit

Permalink
feat: remove not null guard in itlRepo
Browse files Browse the repository at this point in the history
since already required in schema
  • Loading branch information
zz-hh-aa committed Dec 13, 2024
1 parent 427e060 commit 230b21b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions app/data/itlRepo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ describe("itlRepo", () => {
expect(prisma.itlLookup.findFirstOrThrow).toHaveBeenCalledWith({
where: {
postcode: postcodeDistrict,
itl3: {
not: null,
},
},
select: {
itl3: true,
Expand Down
3 changes: 0 additions & 3 deletions app/data/itlRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ const getItl3ByPostcodeDistrict = async (
const { itl3 } = await prisma.itlLookup.findFirstOrThrow({
where: {
postcode: postcodeDistrict,
itl3: {
not: null,
},
},
select: {
itl3: true,
Expand Down

0 comments on commit 230b21b

Please sign in to comment.