Compare commits

..

No commits in common. "177f1b3f5be487a24f1e91305bccf6d87a981d0b" and "2087666991fd2a713f98486a3df1baf7ac9a9168" have entirely different histories.

4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "journal.pl", "name": "journal.pl",
"version": "2.1.1", "version": "2.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "journal.pl", "name": "journal.pl",
"version": "2.1.1", "version": "2.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@chakra-ui/icons": "^2.1.1", "@chakra-ui/icons": "^2.1.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "journal.pl", "name": "journal.pl",
"version": "2.1.1", "version": "2.1.0",
"description": "inno-js platform journal ui repo", "description": "inno-js platform journal ui repo",
"main": "./src/index.tsx", "main": "./src/index.tsx",
"scripts": { "scripts": {

View File

@ -81,7 +81,7 @@ export const api = createApi({
updateLesson: builder.mutation<BaseResponse<Lesson>, Partial<Lesson> & Pick<Lesson, '_id'>>({ updateLesson: builder.mutation<BaseResponse<Lesson>, Partial<Lesson> & Pick<Lesson, '_id'>>({
query: (data) => ({ query: (data) => ({
method: 'PUT', method: 'PUT',
url: '/lesson', url: `/lesson/${data._id}`,
body: data, body: data,
}), }),
invalidatesTags: ['LessonList'], invalidatesTags: ['LessonList'],

View File

@ -49,7 +49,7 @@ router.delete('/lesson/:lessonId', (req, res) => {
res.send({ success: true, body: { ok: true }}) res.send({ success: true, body: { ok: true }})
}) })
router.put('/lesson', (req, res) => { router.put('/lesson/:lessonId', (req, res) => {
res.send({ success: true, body: req.body }) res.send({ success: true, body: req.body })
}) })