Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Select fields does not work as expected #24

Open
m-kus opened this issue Sep 26, 2023 · 0 comments
Open

Select fields does not work as expected #24

m-kus opened this issue Sep 26, 2023 · 0 comments
Assignees

Comments

@m-kus
Copy link
Contributor

m-kus commented Sep 26, 2023

const liveBlocks = await blocksGet({
      sort: {
        desc: 'level',
      },
      limit: this.liveBlocksLimit,
      select: { fields: ['hash', 'timestamp'] },
      ...filters,
    });

Returns plain array of hashes although should return list of objects: https://api.tzkt.io/v1/blocks?select.fields=hash,timestamp&limit=2

Probably string array is not joined.

We also need to handle the edge case with a single feed (maybe return Block[] | string[])

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants