LINXD-1229: Update simulator to work with 3.34
This commit is contained in:
13
src/asset.js
13
src/asset.js
@ -292,9 +292,14 @@ class Asset {
|
||||
}
|
||||
|
||||
_getRecord(startDate, stopDate) {
|
||||
console.log(this.apiEndpoint + `/history-pagination/1/300/${this.id}/${startDate}/${stopDate}/0/0/0/1/null`)
|
||||
|
||||
|
||||
console.log(`${this.apiEndpoint}/asset-history/${this.id}/call-history/${startDate}/${stopDate}/10`);
|
||||
|
||||
// console.log(this.apiEndpoint + `/history-pagination/1/300/${this.id}/${startDate}/${stopDate}/0/0/0/1/null`)
|
||||
Request.get(
|
||||
this.apiEndpoint + `/history-pagination/1/300/${this.id}/${startDate}/${stopDate}/0/0/0/1/null`,
|
||||
`${this.apiEndpoint}/asset-history/${this.id}/call-history/${startDate}/${stopDate}/10`,
|
||||
// this.apiEndpoint + `/history-pagination/1/300/${this.id}/${startDate}/${stopDate}/0/0/0/1/null`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${this.token}`
|
||||
@ -313,8 +318,8 @@ class Asset {
|
||||
latest = e;
|
||||
}
|
||||
})
|
||||
console.log(chalk.green(`[RECORDER] Record found(${latest.id}) for asset ${this.id} | description: ${latest.description} ✓`));
|
||||
utils.writeLog(`[RECORDER] Record found(${latest.id}) for asset ${this.id} | description: ${latest.description}`)
|
||||
console.log(chalk.green(`[RECORDER] Record found(${latest.id}) for asset ${this.id} ✓`));
|
||||
utils.writeLog(`[RECORDER] Record found(${latest.id}) for asset ${this.id}`)
|
||||
} else {
|
||||
console.log(chalk.yellow(`[RECORDER] for asset ${this.id} not found`));
|
||||
}
|
||||
|
Reference in New Issue
Block a user