chore: Move initial avatar upload to background worker (#3727)
* chore: Async user avatar upload processor * chore: Async team avatar upload * Refactor to task for retries * Docs Include avatarUrl in task props to prevent race condition Remove transaction around upload fetch request
This commit is contained in:
@@ -46,7 +46,6 @@ export type UserEvent = BaseEvent &
|
||||
(
|
||||
| {
|
||||
name:
|
||||
| "users.create"
|
||||
| "users.signin"
|
||||
| "users.signout"
|
||||
| "users.update"
|
||||
@@ -56,7 +55,7 @@ export type UserEvent = BaseEvent &
|
||||
userId: string;
|
||||
}
|
||||
| {
|
||||
name: "users.promote" | "users.demote";
|
||||
name: "users.create" | "users.promote" | "users.demote";
|
||||
userId: string;
|
||||
data: {
|
||||
name: string;
|
||||
@@ -217,7 +216,7 @@ export type IntegrationEvent = BaseEvent & {
|
||||
};
|
||||
|
||||
export type TeamEvent = BaseEvent & {
|
||||
name: "teams.update";
|
||||
name: "teams.create" | "teams.update";
|
||||
data: Partial<Team>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user