Skip to content

Commit d672b11

Browse files
author
James Lees
committed
fix accidental renaming token->deviceToken
1 parent ab70466 commit d672b11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ export default class BaseClient {
180180
await this._deviceStateStore.setLastSeenUserAgent(userAgent);
181181
}
182182

183-
async _registerDevice(deviceToken) {
183+
async _registerDevice(token) {
184184
const path = `${this._baseURL}/device_api/v1/instances/${encodeURIComponent(
185185
this.instanceId
186186
)}/devices/${this._platform}`;
187187

188188
const device = {
189-
deviceToken,
189+
token,
190190
metadata: {
191191
sdkVersion,
192192
},

0 commit comments

Comments
 (0)