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

Select fields does not work as expected #24

@m-kus

Description

@m-kus
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[])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions