From c19e4734334bb0bd2a4918e522c65b901a240530 Mon Sep 17 00:00:00 2001 From: Nenad Date: Mon, 8 Jan 2024 12:43:19 +0100 Subject: [PATCH] Revert "Add email as part of checking for reg. reference" This reverts commit 7c5991ded215f4fe579042a20281ca68e494bbbd. --- src/services/aws/registration/registration.ts | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/services/aws/registration/registration.ts b/src/services/aws/registration/registration.ts index 056724df9d..e9dc83b05b 100644 --- a/src/services/aws/registration/registration.ts +++ b/src/services/aws/registration/registration.ts @@ -27,20 +27,18 @@ const registration_api = aws.injectEndpoints({ headers: { authorization: TEMP_JWT }, }), }), - reg: builder.query( - { - providesTags: [{ type: "admin", id: adminTags.registration }], - query: ({ reference: uuid, email }) => { - return { - url: "v1/registration", - params: { uuid, email }, - }; - }, - transformResponse(res: SavedRegistration) { - return { ...res, reqId: 0 }; - }, - } - ), + reg: builder.query({ + providesTags: [{ type: "admin", id: adminTags.registration }], + query: (uuid) => { + return { + url: "v1/registration", + params: { uuid }, + }; + }, + transformResponse(res: SavedRegistration) { + return { ...res, reqId: 0 }; + }, + }), fiscalSponsorshipAgreementSigningURL: builder.mutation< { url: string }, FiscalSponsorhipAgreementSigner