bcfreeflight
    Preparing search index...

    Class AwsDynamoDBDeviceRepository

    A repository for interacting with a table containing device data. This repository provides a method to get devices by their deviceId.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Finds and retrieves the record associated with the provided deviceId from the table. The uploadKey parameter is now treated as the table's deviceId column.

      Parameters

      • id: string

        The deviceId of the record to retrieve (previously this was the upload key).

      Returns Promise<null | DeviceInfo>

      A promise that resolves to the retrieved item or null if not found.

      Throws an error if the uploadKey (deviceId) is not provided.