Skip to content

Commit

Permalink
fixed merged changed
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Aug 29, 2024
1 parent 997f559 commit c5a609e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingSelectFeild,
missingEntry,
missingMandatoryFields,
missingTitleFields;
missingTitleFields,
missingRefInCustomRoles;

for (const module of this.sharedConfig.flags.modules || this.sharedConfig.modules) {
Expand Down Expand Up @@ -218,7 +218,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingCtRefsInWorkflow,
missingSelectFeild,
missingMandatoryFields,
missingTitleFields
missingTitleFields,
missingRefInCustomRoles,
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-audit/src/modules/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export default class Entries {
};

if (mandatory) {
if ((data_type === 'json' && field_metadata.allow_json_rte && isJsonRteEmpty()) || isEntryEmpty()) {
if ((data_type === 'json' && field_metadata.allow_json_rte && isJsonRteEmpty()) || (!(data_type === 'json') && isEntryEmpty())) {
return [
{
uid: this.currentUid,
Expand Down

0 comments on commit c5a609e

Please sign in to comment.