Skip to content

Remove duplicate 'await' in article service#172

Open
Vansh1811 wants to merge 1 commit intogothinkster:masterfrom
Vansh1811:fix/remove-duplicate-await-article-service
Open

Remove duplicate 'await' in article service#172
Vansh1811 wants to merge 1 commit intogothinkster:masterfrom
Vansh1811:fix/remove-duplicate-await-article-service

Conversation

@Vansh1811
Copy link
Copy Markdown

Fixed a duplicate 'await await' bug in the updateArticle and deleteArticle functions in article.service.ts.

The expression 'await await prisma.article.findFirst(...)' unnecessarily awaits an already-awaited promise, which is redundant and potentially confusing. Changed both occurrences to a single 'await'.

Fixed a duplicate 'await await' bug in the updateArticle and deleteArticle functions in article.service.ts.

The expression 'await await prisma.article.findFirst(...)' unnecessarily awaits an already-awaited promise, which is redundant and potentially confusing. Changed both occurrences to a single 'await'.
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.

1 participant