From 3744e4f0f8eac7e6b25db175891f599e31dafabb Mon Sep 17 00:00:00 2001 From: SKairinos Date: Mon, 3 Jun 2024 14:38:31 +0000 Subject: [PATCH] fix: tag types and update arg --- src/api/index.ts | 2 +- src/api/teacher.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 24e4daa..0a3a6e1 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -5,7 +5,7 @@ const api = createApi({ baseQuery: fetchBaseQuery({ baseUrl: import.meta.env.VITE_API_BASE_URL, }), - tagTypes, + tagTypes: [...tagTypes, "SchoolTeacherInvitation"], endpoints: () => ({}), }) diff --git a/src/api/teacher.ts b/src/api/teacher.ts index e774ca7..589fb7e 100644 --- a/src/api/teacher.ts +++ b/src/api/teacher.ts @@ -30,7 +30,7 @@ const teacherApi = api.injectEndpoints({ }), removeTeacherFromSchool: build.mutation< UpdateResult, - Teacher["id"] + UpdateArg >({ query: id => ({ url: buildUrl(urls.teacher.detail, { url: { id } }),