Closed foxane closed 1 month ago
db.getAuthorById() will compare string to number Fixed using Number() on authorId
db.getAuthorById() will compare string to number, resulting all request to /:authorId return 'Author not found' regardless the id
db.getAuthorById()
Number()
Closes #28956
location of change: brief description of change
Intro to HTML and CSS lesson: Fix link text
Because
This PR
Issue
db.getAuthorById() will compare string to number Fixed using Number() on authorId
Because
db.getAuthorById()
will compare string to number, resulting all request to /:authorId return 'Author not found' regardless the idThis PR
Number()
ondb.getAuthorById()
s argumentIssue
Closes #28956
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section