chore: Bringing across edits from enterprise codebase
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Event } from "@server/types";
|
||||
|
||||
export default abstract class BaseProcessor {
|
||||
static applicableEvents: Event["name"][] = [];
|
||||
static applicableEvents: (Event["name"] | "*")[] = [];
|
||||
|
||||
public abstract perform(event: Event): Promise<void>;
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ export default class WebsocketsProcessor {
|
||||
}
|
||||
|
||||
case "collections.add_group": {
|
||||
const group = await Group.findByPk(event.data.groupId);
|
||||
const group = await Group.findByPk(event.modelId);
|
||||
if (!group) {
|
||||
return;
|
||||
}
|
||||
@@ -320,7 +320,7 @@ export default class WebsocketsProcessor {
|
||||
}
|
||||
|
||||
case "collections.remove_group": {
|
||||
const group = await Group.findByPk(event.data.groupId);
|
||||
const group = await Group.findByPk(event.modelId);
|
||||
if (!group) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user