mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -10,14 +10,14 @@ module.exports = {
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
const userIds = await sails.helpers.projects.getManagerAndBoardMemberUserIds(
|
||||
const projectRelatedUserIds = await sails.helpers.projects.getManagerAndBoardMemberUserIds(
|
||||
inputs.record.projectId,
|
||||
);
|
||||
|
||||
const projectManager = await ProjectManager.destroyOne(inputs.record.id);
|
||||
|
||||
if (projectManager) {
|
||||
userIds.forEach((userId) => {
|
||||
projectRelatedUserIds.forEach((userId) => {
|
||||
sails.sockets.broadcast(
|
||||
`user:${userId}`,
|
||||
'projectManagerDelete',
|
||||
|
||||
Reference in New Issue
Block a user