Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit bf7587e

Browse files
committed
fix: error sending body to notifications
1 parent e145537 commit bf7587e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deskbookers",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "Deskbookers API JavaScript SDK",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/Notifications.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ export default class Notifications extends Resource {
9999
id
100100
}
101101
clean(body)
102-
console.log(userId, body)
103102
return await this.request({
104103
method: 'PUT',
105104
path: `notifications/${userId}`,
106-
body: {body}
105+
body
107106
})
108107
}
109108

0 commit comments

Comments
 (0)