Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: enable and fix prefer-await-to-then #2002

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

erezrokah
Copy link
Contributor

Related to #1891

@erezrokah erezrokah requested a review from a team as a code owner March 15, 2021 16:51
@@ -26,11 +26,9 @@ module.exports = {
'fp/no-this': 0,
'import/max-dependencies': 0,
'node/no-sync': 0,
'promise/catch-or-return': 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This rule didn't require any fixes

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Mar 15, 2021
@erezrokah erezrokah requested a review from ehmicky March 15, 2021 16:52
@erezrokah erezrokah enabled auto-merge (squash) March 15, 2021 17:02
throw error
})
console.log('Created items class')
return client.query(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return client.query(
return await client.query(

For proper error handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants