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

[js] Make this.executeFunction synchronous #14

Merged
merged 5 commits into from
Jan 29, 2024
Merged

Conversation

huytool157
Copy link
Collaborator

No description provided.

Comment on lines +256 to +258
.catch((err) => {
this._logger.error(`Error updating query response: `, err)
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added this log

agentError = createAgentServerError(err)
status = 'error'
})
.finally(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this callback is not async when you use then/catch

@huytool157 huytool157 merged commit 9c16e68 into main Jan 29, 2024
4 checks passed
@huytool157 huytool157 deleted the hqp/js-then-catch branch January 29, 2024 17:57
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