Skip to content

Commit

Permalink
Merge pull request #69 from shikshalokam/projectFix
Browse files Browse the repository at this point in the history
fix constants
  • Loading branch information
priyanka-TL authored Feb 15, 2022
2 parents 89fa4ae + 5c4eb4c commit c5bae1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module/project/templateTasks/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
6 changes: 3 additions & 3 deletions module/project/templates/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit c5bae1e

Please sign in to comment.