-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(backend): tenanted webhooks #3317
base: 2893/multi-tenancy-v1
Are you sure you want to change the base?
Conversation
6ee3c75
to
12d1318
Compare
e6b9736
to
792d0b3
Compare
@@ -68,7 +68,8 @@ export class Peer | |||
}, | |||
liquidityThreshold: this.liquidityThreshold, | |||
balance | |||
} | |||
}, | |||
tenantId // TODO: update when peers are tenanted |
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.
For now this is using the operator tenant ID, but will be replaced with the peer's own tenant id once #3129 is merged in.
Large portions of this code are reviewable, but at the moment there are a handful of sections that have temporary code to address the fact that peers are not tenanted - as they may generate a |
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.
looks good. I assume we are waiting on the peer stuff before merging, hence the draft status.
body, | ||
{ | ||
timeout: settings?.webhookTimeout?.value | ||
? Number(settings?.webhookTimeout?.value) |
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 handle the case where Number(settings?.webhookTimeout?.value)
resolves to NaN
(eg value is "a"
).
Changes proposed in this pull request
Context
Fixes #3121.
Checklist
fixes #number
user-docs
label (if necessary)