mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Add start script for Docker image, pre-commit lint check, package.json scripts cleanup
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user