1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 15:19:44 +02:00

Add username to user

This commit is contained in:
Maksim Eltyshev 2020-04-03 00:35:25 +05:00
parent ec222a5e32
commit af00e3e191
143 changed files with 1051 additions and 420 deletions

View file

@ -1,6 +1,6 @@
const Errors = {
BOARD_NOT_FOUND: {
notFound: 'Board is not found',
boardNotFound: 'Board not found',
},
};
@ -22,7 +22,7 @@ module.exports = {
},
exits: {
notFound: {
boardNotFound: {
responseType: 'notFound',
},
},
@ -32,7 +32,7 @@ module.exports = {
const { board, project } = await sails.helpers
.getBoardToProjectPath(inputs.boardId)
.intercept('notFound', () => Errors.BOARD_NOT_FOUND);
.intercept('pathNotFound', () => Errors.BOARD_NOT_FOUND);
const isUserMemberForProject = await sails.helpers.isUserMemberForProject(
project.id,

View file

@ -1,6 +1,6 @@
const Errors = {
LIST_NOT_FOUND: {
notFound: 'List is not found',
listNotFound: 'List not found',
},
};
@ -14,7 +14,7 @@ module.exports = {
},
exits: {
notFound: {
listNotFound: {
responseType: 'notFound',
},
},
@ -24,7 +24,7 @@ module.exports = {
const listToProjectPath = await sails.helpers
.getListToProjectPath(inputs.id)
.intercept('notFound', () => Errors.LIST_NOT_FOUND);
.intercept('pathNotFound', () => Errors.LIST_NOT_FOUND);
let { list } = listToProjectPath;
const { project } = listToProjectPath;

View file

@ -1,6 +1,6 @@
const Errors = {
LIST_NOT_FOUND: {
notFound: 'List is not found',
listNotFound: 'List not found',
},
};
@ -21,7 +21,7 @@ module.exports = {
},
exits: {
notFound: {
listNotFound: {
responseType: 'notFound',
},
},
@ -31,7 +31,7 @@ module.exports = {
const listToProjectPath = await sails.helpers
.getListToProjectPath(inputs.id)
.intercept('notFound', () => Errors.LIST_NOT_FOUND);
.intercept('pathNotFound', () => Errors.LIST_NOT_FOUND);
let { list } = listToProjectPath;
const { project } = listToProjectPath;