Skip to content

Commit

Permalink
Add email as part of checking for reg. reference
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jan 8, 2024
1 parent 3f9110d commit 7c5991d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/services/aws/registration/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ const registration_api = aws.injectEndpoints({
headers: { authorization: TEMP_JWT },
}),
}),
reg: builder.query<SavedRegistration, string>({
providesTags: [{ type: "admin", id: adminTags.registration }],
query: (uuid) => {
return {
url: "v1/registration",
params: { uuid },
};
},
transformResponse(res: SavedRegistration) {
return { ...res, reqId: 0 };
},
}),
reg: builder.query<SavedRegistration, { reference: string; email: string }>(
{
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
Expand Down

0 comments on commit 7c5991d

Please sign in to comment.