iamshaunjp / iamshaunjp/node-crash-course

Blogs with the same id lenght throwing ejs error. [With solution]

Open
#5 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
955
Forks
953
PR merge metrics
No merged PRs in 30d

Description

blog_details controller returns "null" if he couldn't find a blog in the database.

Simple solution:
Add "if (null === result) throw err;" to blogController.js on line 17.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in blogController.js at line 17, where the blog_details controller handles a missing database result. Review the null-return path and verify that the EJS error no longer occurs when blogs have the same ID length.】【。

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.