fix: users.promote & users.demote not handled by DeliverWebhookTask
This commit is contained in:
@@ -55,6 +55,13 @@ export type UserEvent = BaseEvent &
|
||||
| "users.delete";
|
||||
userId: string;
|
||||
}
|
||||
| {
|
||||
name: "users.promote" | "users.demote";
|
||||
userId: string;
|
||||
data: {
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
| {
|
||||
name: "users.invite";
|
||||
userId: string;
|
||||
@@ -264,7 +271,6 @@ export type WebhookSubscriptionEvent = BaseEvent & {
|
||||
export type Event =
|
||||
| ApiKeyEvent
|
||||
| AttachmentEvent
|
||||
| UserEvent
|
||||
| DocumentEvent
|
||||
| PinEvent
|
||||
| StarEvent
|
||||
@@ -275,5 +281,6 @@ export type Event =
|
||||
| RevisionEvent
|
||||
| ShareEvent
|
||||
| TeamEvent
|
||||
| UserEvent
|
||||
| ViewEvent
|
||||
| WebhookSubscriptionEvent;
|
||||
|
||||
Reference in New Issue
Block a user