-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add delete comment API #115
Conversation
}); | ||
|
||
if (updatedCommentIdResponse.length != 1) { | ||
server.log.error("Invalid comment table update response length: " + updatedCommentIdResponse.length.toString()); |
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.
i think we should throw an error here instead of logging, probably after the tx.rollback(), though throwing would rollback anyway I think (to be verified)
|
||
if (updatedPostIdResponse.length != 1) { | ||
tx.rollback(); |
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.
should we throw here? not sure
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.
See comments
Relates to #104 |
Changes: