Skip to content

Commit

Permalink
Update capability.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Feb 16, 2024
1 parent ed3088b commit 961b430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/capability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const handler: Handler<Options> = async ({ seam, logger }) => {
'can_program_online_access_codes' in device &&
!device.can_program_online_access_codes
) {
const accessCodes = device.accessCodes.list({
const accessCodes = seam.accessCodes.list({
device_id: device.device_id,
})
if (accessCodes.length > 0) continue

Check failure on line 26 in examples/capability.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v18)

Property 'length' does not exist on type 'Promise<{ common_code_key: string | null; is_scheduled_on_device?: boolean | undefined; type: "time_bound" | "ongoing"; is_waiting_for_code_assignment?: boolean | undefined; access_code_id: string; ... 15 more ...; is_offline_access_code: boolean; }[]>'.

Check failure on line 26 in examples/capability.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v20)

Property 'length' does not exist on type 'Promise<{ common_code_key: string | null; is_scheduled_on_device?: boolean | undefined; type: "time_bound" | "ongoing"; is_waiting_for_code_assignment?: boolean | undefined; access_code_id: string; ... 15 more ...; is_offline_access_code: boolean; }[]>'.
Expand Down

0 comments on commit 961b430

Please sign in to comment.