Skip to content

Commit

Permalink
fix accidental renaming token->deviceToken
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lees committed Feb 18, 2021
1 parent ab70466 commit d672b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ export default class BaseClient {
await this._deviceStateStore.setLastSeenUserAgent(userAgent);
}

async _registerDevice(deviceToken) {
async _registerDevice(token) {
const path = `${this._baseURL}/device_api/v1/instances/${encodeURIComponent(
this.instanceId
)}/devices/${this._platform}`;

const device = {
deviceToken,
token,
metadata: {
sdkVersion,
},
Expand Down

0 comments on commit d672b11

Please sign in to comment.