lint
This commit is contained in:
parent
3589a5302e
commit
3b856e94da
2 changed files with 5 additions and 4 deletions
|
|
@ -386,8 +386,10 @@ export const parseLinkHeaderPagination = (linkHeader, opts = {}) => {
|
|||
const minId = parsedLinkHeader.prev?.min_id
|
||||
|
||||
const result = {}
|
||||
if (maxId !== undefined) result.maxId = flakeId ? maxId : Number.parseInt(maxId, 10)
|
||||
if (minId !== undefined) result.minId = flakeId ? minId : Number.parseInt(minId, 10)
|
||||
if (maxId !== undefined)
|
||||
result.maxId = flakeId ? maxId : Number.parseInt(maxId, 10)
|
||||
if (minId !== undefined)
|
||||
result.minId = flakeId ? minId : Number.parseInt(minId, 10)
|
||||
|
||||
return result
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue