mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
Add username to user
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const Errors = {
|
||||
TASK_NOT_FOUND: {
|
||||
notFound: 'Task is not found',
|
||||
taskNotFound: 'Task not found',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
exits: {
|
||||
notFound: {
|
||||
taskNotFound: {
|
||||
responseType: 'notFound',
|
||||
},
|
||||
},
|
||||
@@ -24,7 +24,7 @@ module.exports = {
|
||||
|
||||
const taskToProjectPath = await sails.helpers
|
||||
.getTaskToProjectPath(inputs.id)
|
||||
.intercept('notFound', () => Errors.TASK_NOT_FOUND);
|
||||
.intercept('pathNotFound', () => Errors.TASK_NOT_FOUND);
|
||||
|
||||
let { task } = taskToProjectPath;
|
||||
const { board, project } = taskToProjectPath;
|
||||
|
||||
Reference in New Issue
Block a user