diff --git a/module/project/templateTasks/helper.js b/module/project/templateTasks/helper.js index 5298b12d..082b4777 100644 --- a/module/project/templateTasks/helper.js +++ b/module/project/templateTasks/helper.js @@ -815,7 +815,7 @@ module.exports = class ProjectTemplateTasksHelper { if( !taskUpdatedData._id ) { throw { - message : constants.apiResponses.TEMPLATE_TASK_NOT_UPDATED + message : CONSTANTS.apiResponses.TEMPLATE_TASK_NOT_UPDATED } } diff --git a/module/project/templates/helper.js b/module/project/templates/helper.js index 5e2f61cd..877880b1 100644 --- a/module/project/templates/helper.js +++ b/module/project/templates/helper.js @@ -442,7 +442,7 @@ module.exports = class ProjectTemplatesHelper { if ( !(template.length > 0 && template[0]._id) ) { currentData["UPDATE_STATUS"] = - constants.apiResponses.PROJECT_TEMPLATE_NOT_FOUND; + CONSTANTS.apiResponses.PROJECT_TEMPLATE_NOT_FOUND; } else { let templateData = await this.templateData( @@ -468,7 +468,7 @@ module.exports = class ProjectTemplatesHelper { if( !projectTemplateUpdated || !projectTemplateUpdated._id ) { currentData["UPDATE_STATUS"] = - constants.apiResponses.PROJECT_TEMPLATE_NOT_UPDATED; + CONSTANTS.apiResponses.PROJECT_TEMPLATE_NOT_UPDATED; } // Add projects count to categories @@ -1199,7 +1199,7 @@ module.exports = class ProjectTemplatesHelper { if( !templateUpdatedData._id ) { throw { - message : constants.apiResponses.PROJECT_TEMPLATE_NOT_UPDATED + message : CONSTANTS.apiResponses.PROJECT_TEMPLATE_NOT_UPDATED } }