Skip to content

Commit 86cd222

Browse files
committed
fix unit tests
1 parent 9fc82f4 commit 86cd222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/functions/linkry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function fetchLinkEntry(
2222
ScanIndexForward: false,
2323
});
2424
const result = await dynamoClient.send(fetchLinkEntry);
25-
if (!result.Items) {
25+
if (!result.Items || result.Items.length == 0) {
2626
return null;
2727
}
2828
const unmarshalled = result.Items.map((x) => unmarshall(x));

0 commit comments

Comments
 (0)