Skip to content

Commit

Permalink
fix api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 11, 2024
1 parent 1a30a12 commit 2fa7846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/api/agreementSignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const agreementSignatureApi = api.injectEndpoints({
CheckSignedLatestAgreementSignatureArg
>({
query: () => ({
url: agreementSignatureUrls.list + "check-signed-latest",
url: agreementSignatureUrls.list + "check-signed-latest/",
method: "GET",
}),
}),
Expand All @@ -108,4 +108,5 @@ export const {
useLazyListAgreementSignaturesQuery,
useCreateAgreementSignatureMutation,
useCheckSignedLatestAgreementSignatureQuery,
useLazyCheckSignedLatestAgreementSignatureQuery,
} = agreementSignatureApi
6 changes: 2 additions & 4 deletions src/api/contributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,24 @@ import api from "."
export type Contributor = Model<
number,
{
email: string
name: string
location?: string
html_url: string
avatar_url: string
last_login?: Date
}
>

const contributorUrls = modelUrls("contributors/", "contributors/<id>/")

export type RetrieveContributorResult = RetrieveResult<
Contributor,
"email" | "name" | "location" | "html_url" | "avatar_url" | "last_login"
"name" | "location" | "html_url" | "avatar_url"
>
export type RetrieveContributorArg = RetrieveArg<Contributor>

export type ListContributorsResult = ListResult<
Contributor,
"email" | "name" | "location" | "html_url" | "avatar_url" | "last_login"
"name" | "location" | "html_url" | "avatar_url"
>
export type ListContributorsArg = ListArg

Expand Down

0 comments on commit 2fa7846

Please sign in to comment.