Skip to content

req.query === 'true' is always false #1667

@ElectricNroff

Description

@ElectricNroff

const useRegistry = req.query === 'true'

This file has one instance of const useRegistry = req.query.registry === 'true' and one instance of const useRegistry = req.query === 'true' but req.query won't be a string in Express. Thus, the validations don't correctly correspond to whether the request had registry=true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Low Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions