mirror of
https://github.com/plankanban/planka.git
synced 2025-07-25 08:09:44 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
2d92ade8dc
commit
c6ee7d54bb
190 changed files with 2144 additions and 1817 deletions
|
@ -12,8 +12,8 @@ module.exports = {
|
|||
const values = _.pick(inputs, ['name']);
|
||||
|
||||
const { project, projectMembership } = await sails.helpers.createProject(
|
||||
values,
|
||||
currentUser,
|
||||
values,
|
||||
this.req,
|
||||
true,
|
||||
);
|
||||
|
|
|
@ -3,7 +3,6 @@ module.exports = {
|
|||
const { currentUser } = this.req;
|
||||
|
||||
const projectIds = await sails.helpers.getMembershipProjectIdsForUser(currentUser.id);
|
||||
|
||||
const projects = await sails.helpers.getProjects(projectIds);
|
||||
|
||||
const { userIds, projectMemberships } = await sails.helpers.getMembershipUserIdsForProject(
|
||||
|
@ -12,7 +11,6 @@ module.exports = {
|
|||
);
|
||||
|
||||
const users = await sails.helpers.getUsers(userIds);
|
||||
|
||||
const boards = await sails.helpers.getBoardsForProject(projectIds);
|
||||
|
||||
return exits.success({
|
||||
|
|
|
@ -65,7 +65,6 @@ module.exports = {
|
|||
}
|
||||
|
||||
const values = _.pick(inputs, ['name', 'background', 'backgroundImage']);
|
||||
|
||||
project = await sails.helpers.updateProject(project, values, this.req);
|
||||
|
||||
if (!project) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue