Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
INT-8568: force boolean type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mich committed Aug 24, 2023
1 parent 749d13f commit 46a754a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/steps/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,15 @@ export async function fetchMobileDevices({
new Map();

await iterateMobileDevices(client, logger, async (device, deviceDetail) => {
const previouslyDiscoveredDevice = jobState.hasKey(device.serial_number);
const previouslyDiscoveredDevice = jobState.hasKey(
device.serial_number,
) as boolean;

const mobileDeviceEntity = await jobState.addEntity(
createMobileDeviceEntity(
device,
deviceDetail,
previouslyDiscoveredDevice as boolean,
previouslyDiscoveredDevice,
),
);

Expand Down

0 comments on commit 46a754a

Please sign in to comment.