mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
28 lines
430 B
JavaScript
28 lines
430 B
JavaScript
module.exports = {
|
|
inputs: {
|
|
record: {
|
|
type: 'ref',
|
|
required: true,
|
|
},
|
|
request: {
|
|
type: 'ref',
|
|
},
|
|
},
|
|
|
|
async fn(inputs) {
|
|
const list = await List.archiveOne(inputs.record.id);
|
|
|
|
if (list) {
|
|
sails.sockets.broadcast(
|
|
`board:${list.boardId}`,
|
|
'listDelete',
|
|
{
|
|
item: list,
|
|
},
|
|
inputs.request,
|
|
);
|
|
}
|
|
|
|
return list;
|
|
},
|
|
};
|