mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 21:59:43 +02:00
Initial commit
This commit is contained in:
commit
5ffef61fe7
613 changed files with 91659 additions and 0 deletions
26
server/api/helpers/delete-list.js
Normal file
26
server/api/helpers/delete-list.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
module.exports = {
|
||||
inputs: {
|
||||
record: {
|
||||
type: 'ref',
|
||||
required: true
|
||||
},
|
||||
request: {
|
||||
type: 'ref'
|
||||
}
|
||||
},
|
||||
|
||||
fn: async function(inputs, exits) {
|
||||
const list = await List.archiveOne(inputs.record.id);
|
||||
|
||||
sails.sockets.broadcast(
|
||||
`board:${list.boardId}`,
|
||||
'listDelete',
|
||||
{
|
||||
item: list
|
||||
},
|
||||
inputs.request
|
||||
);
|
||||
|
||||
return exits.success(list);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue