-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update PostgresStorageAdapter.js #6989
Conversation
Improve `createClass` transaction: * `await` makes it a more consistent sequence of queries * `batch` is not needed there * No need for an extra `.then` section
Danger run resulted in 1 fail and 1 markdown; to find out more, see the checks page. Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #6989 +/- ##
=======================================
Coverage 93.81% 93.82%
=======================================
Files 169 169
Lines 12409 12405 -4
=======================================
- Hits 11642 11639 -3
+ Misses 767 766 -1
Continue to review full report at Codecov.
|
Remove batch-dependent error code check, as it should happen automatically without batch result.
Removing unused variable.
Looks better now 😄 Little steps. |
@dplewis Should be good for merging ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Update PostgresStorageAdapter.js Improve `createClass` transaction: * `await` makes it a more consistent sequence of queries * `batch` is not needed there * No need for an extra `.then` section * Update PostgresStorageAdapter.js Remove batch-dependent error code check, as it should happen automatically without batch result. * Update PostgresStorageAdapter.js Removing unused variable.
Improve
createClass
transaction:await
makes it a more consistent sequence of queriesbatch
is not needed there.then
section