Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Count return type is not a number #31

@pavelsvagr

Description

@pavelsvagr

The current implementation of count claims to return number, but it returns string

  const count = await repository.count() // table with 1 row
  if (count === 1) {
     // Never here
  }
  
  console.log(typeof count === 'number') // false
  console.log(typeof count === 'string') // true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions