Skip to content

Commit 78322dc

Browse files
committed
Fix typo
1 parent a3a196a commit 78322dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/postDatedLambda/src/databaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export async function getExistingRecordsByPrescriptionID(
6161
const result = await client.send(new QueryCommand(query))
6262

6363
if (result.Items) {
64-
const parsedItems = result.Items.map((item) => unmarshall(item) as PSUDataItem)
65-
items.push(parsedItems)
64+
const parsedItems: Array<PSUDataItem> = result.Items.map((item) => unmarshall(item) as PSUDataItem)
65+
items.push(...parsedItems)
6666
}
6767

6868
lastEvaluatedKey = result.LastEvaluatedKey

0 commit comments

Comments
 (0)