diff --git a/src/services/aws/registration/registration.ts b/src/services/aws/registration/registration.ts index e9dc83b05b..056724df9d 100644 --- a/src/services/aws/registration/registration.ts +++ b/src/services/aws/registration/registration.ts @@ -27,18 +27,20 @@ const registration_api = aws.injectEndpoints({ headers: { authorization: TEMP_JWT }, }), }), - reg: builder.query({ - providesTags: [{ type: "admin", id: adminTags.registration }], - query: (uuid) => { - return { - url: "v1/registration", - params: { uuid }, - }; - }, - transformResponse(res: SavedRegistration) { - return { ...res, reqId: 0 }; - }, - }), + 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 }; + }, + } + ), fiscalSponsorshipAgreementSigningURL: builder.mutation< { url: string }, FiscalSponsorhipAgreementSigner