fix(core): getStarGifts pagination

This commit is contained in:
alina 🌸 2024-12-01 15:28:59 +03:00
parent 81398889f6
commit edf8c8939e
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -42,5 +42,5 @@ export async function getStarGifts(
const peers = PeersIndex.from(res)
const gifts = res.gifts.map(gift => new UserStarGift(gift, peers))
return makeArrayPaginated(gifts, res.count, offset)
return makeArrayPaginated(gifts, res.count, res.nextOffset)
}