Skip to content

Commit 09dea5b

Browse files
author
Alan Shaw
committed
fix: allow zero count
1 parent e3f7a48 commit 09dea5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/routes/nfts-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export async function nftList(event, ctx) {
4040
ok: true,
4141
value: data.uploads?.map((n) => toNFTResponse(n)),
4242
},
43-
data.count ? { headers: { Count: data.count.toString() } } : {}
43+
data.count != null ? { headers: { Count: data.count.toString() } } : {}
4444
)
4545
}

0 commit comments

Comments
 (0)