mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
12 lines
446 B
TypeScript
12 lines
446 B
TypeScript
import type { Event as TEvent, UserEvent } from "@server/types";
|
|
import CleanupDemotedUserTask from "../tasks/CleanupDemotedUserTask";
|
|
import BaseProcessor from "./BaseProcessor";
|
|
|
|
export default class UserDemotedProcessor extends BaseProcessor {
|
|
static applicableEvents: TEvent["name"][] = ["users.demote", "users.suspend"];
|
|
|
|
async perform(event: UserEvent) {
|
|
await new CleanupDemotedUserTask().schedule({ userId: event.userId });
|
|
}
|
|
}
|