Skip to content

Commit

Permalink
fix: tag types and update arg
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jun 3, 2024
1 parent 1563472 commit 3744e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const api = createApi({
baseQuery: fetchBaseQuery({
baseUrl: import.meta.env.VITE_API_BASE_URL,
}),
tagTypes,
tagTypes: [...tagTypes, "SchoolTeacherInvitation"],
endpoints: () => ({}),

Check warning on line 9 in src/api/index.ts

View check run for this annotation

Codecov / codecov/patch

src/api/index.ts#L9

Added line #L9 was not covered by tests
})

Expand Down
2 changes: 1 addition & 1 deletion src/api/teacher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const teacherApi = api.injectEndpoints({
}),
removeTeacherFromSchool: build.mutation<
UpdateResult<Teacher, "user">,
Teacher["id"]
UpdateArg<Teacher>
>({
query: id => ({

Check warning on line 35 in src/api/teacher.ts

View check run for this annotation

Codecov / codecov/patch

src/api/teacher.ts#L35

Added line #L35 was not covered by tests
url: buildUrl(urls.teacher.detail, { url: { id } }),
Expand Down

0 comments on commit 3744e4f

Please sign in to comment.