mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 17:25:39 +03:00
Fix board deletion, update dependencies. Closes #146
This commit is contained in:
@@ -20,6 +20,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
const { currentUser } = this.req;
|
||||
|
||||
let { board } = await sails.helpers.boards
|
||||
.getProjectPath(inputs.id)
|
||||
.intercept('pathNotFound', () => Errors.BOARD_NOT_FOUND);
|
||||
|
||||
@@ -10,6 +10,10 @@ module.exports = {
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
await BoardMembership.destroy({
|
||||
boardId: inputs.record.id,
|
||||
}).fetch();
|
||||
|
||||
const board = await Board.archiveOne(inputs.record.id);
|
||||
|
||||
if (board) {
|
||||
|
||||
Reference in New Issue
Block a user