Skip to content

Commit

Permalink
Revert "Add email as part of checking for reg. reference"
Browse files Browse the repository at this point in the history
This reverts commit 7c5991d.
  • Loading branch information
0xNeshi committed Jan 8, 2024
1 parent 7c5991d commit c19e473
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/services/aws/registration/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ const registration_api = aws.injectEndpoints({
headers: { authorization: TEMP_JWT },
}),
}),
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 };
},
}
),
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 };
},
}),
fiscalSponsorshipAgreementSigningURL: builder.mutation<
{ url: string },
FiscalSponsorhipAgreementSigner
Expand Down

0 comments on commit c19e473

Please sign in to comment.