Skip to content

moving data storage to NoSQL database - #3

Open
kandalova wants to merge 14 commits into
task_6_shop_express.jsfrom
task_8_NoSQL_database
Open

moving data storage to NoSQL database#3
kandalova wants to merge 14 commits into
task_6_shop_express.jsfrom
task_8_NoSQL_database

Conversation

@kandalova

Copy link
Copy Markdown
Owner

No description provided.

@kandalova
kandalova marked this pull request as ready for review November 2, 2023 19:30
Comment thread src/index.ts
const userId = req.header('x-user-id') ?? '';
if (!userId) {
next(getForbidenError());
try {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ты может создать отдельную функцию обертку, которая будет содержать try catch

Comment thread src/index.ts
app.listen(PORT, () => {
console.log(`Server is Fire at http://localhost:${PORT}`);
});
//mock data for first run

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

много комментов оставила

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants