Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onesignal-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Cedar Studios
onesignal-node
Commits
602166df
Commit
602166df
authored
Oct 04, 2018
by
Joe Wilm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with editDevice not including app_id
The OneSignal API requires passing `app_id` in device update calls.
parent
0168b473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
client.js
lib/client.js
+3
-0
No files found.
lib/client.js
View file @
602166df
...
...
@@ -276,6 +276,9 @@ Client.prototype.editDevice = function (deviceId, body, callback) {
if
(
!
this
.
app
)
{
throw
'You must define an "app" object.'
}
if
(
!
(
'app_id'
in
body
))
{
body
.
app_id
=
this
.
app
.
appId
;
}
return
basicRequest
(
this
.
API_URI
+
constants
.
DEVICES_PATH
+
'/'
+
deviceId
,
this
.
app
.
appAuthKey
,
'PUT'
,
body
,
callback
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment