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

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

In Review

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions