Skip to content

Commit

Permalink
refactor: adjusted code according to standardjs format
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiKumar2121 committed Sep 20, 2024
1 parent 9a75ceb commit 489e654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/main/server/controllers/appController.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.getSlackDetails = async (req, res) => {
errors: [
{
error: 'Internal Server Error',
message: error && error.message ? error.message :'An unexpected error occurred'
message: error && error.message ? error.message : 'An unexpected error occurred'
}
]
});
Expand Down Expand Up @@ -173,7 +173,7 @@ exports.updateSlackDetails = async (req, res) => {
errors: [
{
error: 'Internal Server Error',
message: error && error.message ? error.message :'An unexpected error occurred'
message: error && error.message ? error.message : 'An unexpected error occurred'
}
]
});
Expand Down Expand Up @@ -228,7 +228,7 @@ exports.getEmailDetails = async (req, res) => {
errors: [
{
error: 'Internal Server Error',
message: error && error.message ? error.message :'An unexpected error occurred'
message: error && error.message ? error.message : 'An unexpected error occurred'
}
]
});
Expand Down
2 changes: 1 addition & 1 deletion lib/main/server/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ exports.addUser = async (req, res) => {
} else {
const errorData = [{
error: 'Forbidden',
message: userDetails.error ||'Not allowed'
message: userDetails.error || 'Not allowed'
}];
res.status(403).send({ errors: errorData });
}
Expand Down

0 comments on commit 489e654

Please sign in to comment.