Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop 2.5 #362

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
removed error response on empty response
  • Loading branch information
nevil-mathew committed Nov 22, 2023
commit 0328edd002281ebc29b4366664510c6d9c7c8015
8 changes: 1 addition & 7 deletions src/services/entity-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,7 @@ module.exports = class EntityHelper {
},
}
const entityTypes = await entityTypeQueries.findUserEntityTypesAndEntities(filter)
if (!entityTypes.length) {
return common.failureResponse({
message: 'ENTITY_TYPE_NOT_FOUND',
statusCode: httpStatusCode.bad_request,
responseCode: 'CLIENT_ERROR',
})
}

const prunedEntities = removeDefaultOrgEntityTypes(entityTypes, orgId)
return common.successResponse({
statusCode: httpStatusCode.ok,
Expand Down