mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Add start script for Docker image, pre-commit lint check, package.json scripts cleanup
This commit is contained in:
parent
5e17a4880a
commit
e0dee1efef
11 changed files with 1236 additions and 11 deletions
|
@ -28,6 +28,11 @@ module.exports = {
|
|||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
// TODO: allow over HTTP without subscription
|
||||
if (!this.req.isSocket) {
|
||||
return this.res.badRequest();
|
||||
}
|
||||
|
||||
const project = await Project.findOne(inputs.projectId);
|
||||
|
||||
if (!project) {
|
||||
|
@ -38,6 +43,8 @@ module.exports = {
|
|||
|
||||
const board = await sails.helpers.createBoard(project, values, this.req);
|
||||
|
||||
sails.sockets.join(this.req, `board:${board.id}`); // TODO: only when subscription needed
|
||||
|
||||
return exits.success({
|
||||
item: board,
|
||||
included: {
|
||||
|
|
|
@ -46,7 +46,6 @@ module.exports = {
|
|||
values: {
|
||||
coverAttachmentId: attachment.id,
|
||||
},
|
||||
request: inputs.request,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue