Skip to content

Commit

Permalink
extension-webhook: fixes try/catch in onChange hook ; prevent server …
Browse files Browse the repository at this point in the history
…from crashing when onChange webhook doesnt succeed, fixes #794
  • Loading branch information
janthurau committed Mar 2, 2024
1 parent 6448146 commit efdf9da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-webhook/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export class Webhook implements Extension {
return
}

const save = () => {
const save = async () => {
try {
this.sendRequest(Events.onChange, {
await this.sendRequest(Events.onChange, {
document: this.configuration.transformer.fromYdoc(data.document),
documentName: data.documentName,
context: data.context,
Expand Down

0 comments on commit efdf9da

Please sign in to comment.