From 2fa7846403800257b0f9727e77671b84d3438ed4 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 11 Sep 2024 12:51:40 +0000 Subject: [PATCH] fix api calls --- src/api/agreementSignature.ts | 3 ++- src/api/contributor.ts | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/api/agreementSignature.ts b/src/api/agreementSignature.ts index bcf574f..5e0cbc0 100644 --- a/src/api/agreementSignature.ts +++ b/src/api/agreementSignature.ts @@ -93,7 +93,7 @@ const agreementSignatureApi = api.injectEndpoints({ CheckSignedLatestAgreementSignatureArg >({ query: () => ({ - url: agreementSignatureUrls.list + "check-signed-latest", + url: agreementSignatureUrls.list + "check-signed-latest/", method: "GET", }), }), @@ -108,4 +108,5 @@ export const { useLazyListAgreementSignaturesQuery, useCreateAgreementSignatureMutation, useCheckSignedLatestAgreementSignatureQuery, + useLazyCheckSignedLatestAgreementSignatureQuery, } = agreementSignatureApi diff --git a/src/api/contributor.ts b/src/api/contributor.ts index 5a00a03..627359f 100644 --- a/src/api/contributor.ts +++ b/src/api/contributor.ts @@ -14,12 +14,10 @@ import api from "." export type Contributor = Model< number, { - email: string name: string location?: string html_url: string avatar_url: string - last_login?: Date } > @@ -27,13 +25,13 @@ const contributorUrls = modelUrls("contributors/", "contributors//") export type RetrieveContributorResult = RetrieveResult< Contributor, - "email" | "name" | "location" | "html_url" | "avatar_url" | "last_login" + "name" | "location" | "html_url" | "avatar_url" > export type RetrieveContributorArg = RetrieveArg export type ListContributorsResult = ListResult< Contributor, - "email" | "name" | "location" | "html_url" | "avatar_url" | "last_login" + "name" | "location" | "html_url" | "avatar_url" > export type ListContributorsArg = ListArg