(#16) fix put lesson api call
This commit is contained in:
1 parent
2087666991
commit
3d7e7a1783
2 files changed
+2
-2
No files matched your search
@@ -81,7 +81,7 @@ export const api = createApi({
|
||||
updateLesson: builder.mutation<BaseResponse<Lesson>, Partial<Lesson> & Pick<Lesson, '_id'>>({
|
||||
query: (data) => ({
|
||||
method: 'PUT',
|
||||
url: `/lesson/${data._id}`,
|
||||
url: '/lesson',
|
||||
body: data,
|
||||
}),
|
||||
invalidatesTags: ['LessonList'],
|
||||
|
||||
Reference in new issue
Block a user