Fix missing cast to number (#2254)

This commit is contained in:
ekzyis 2025-06-30 00:09:11 +02:00 committed by GitHub
parent 8337aad596
commit de01d9493f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,7 +119,7 @@ async function fetchRecentBios () {
) )
// assert that we fetched enough bios // assert that we fetched enough bios
const newBios = bios.filter(b => b.id > FETCH_AFTER) const newBios = bios.filter(b => Number(b.id) > FETCH_AFTER)
if (newBios.length === bios.length) { if (newBios.length === bios.length) {
throw new Error('last bio not found. increase limit') throw new Error('last bio not found. increase limit')
} }