Skip to content

Commit 2df30b7

Browse files
shafeeqd959naman-contentstack
authored andcommitted
removed invalid arguement
1 parent c2841f1 commit 2df30b7

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

packages/contentstack-audit/src/modules/entries.ts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export default class Entries extends BaseClass {
472472
moduleName: 'content-types',
473473
ctSchema: this.ctSchema,
474474
gfSchema: this.gfSchema,
475-
}).run(true, this.ctSchema.length)) as ContentTypeStruct[];
475+
}).run(true)) as ContentTypeStruct[];
476476
log.debug(`Content type schema fixed: ${this.ctSchema.length} schemas`, this.config.auditContext);
477477

478478
log.debug('Fixing global field schema', this.config.auditContext);
@@ -1029,7 +1029,16 @@ export default class Entries extends BaseClass {
10291029
}
10301030
} else {
10311031
const refCtUid = refExist.ctUid;
1032-
if (!this.addInvalidRefIfNeeded(missingRefs, reference, refCtUid, reference_to, reference, `Reference ${reference}`)) {
1032+
if (
1033+
!this.addInvalidRefIfNeeded(
1034+
missingRefs,
1035+
reference,
1036+
refCtUid,
1037+
reference_to,
1038+
reference,
1039+
`Reference ${reference}`,
1040+
)
1041+
) {
10331042
log.debug(`Reference ${reference} is valid`);
10341043
}
10351044
}
@@ -1847,7 +1856,16 @@ export default class Entries extends BaseClass {
18471856
}
18481857
} else {
18491858
const refCtUid = reference._content_type_uid ?? refExist.ctUid;
1850-
if (this.addInvalidRefIfNeeded(missingRefs, reference, refCtUid, reference_to, reference, `Blt reference ${reference}`)) {
1859+
if (
1860+
this.addInvalidRefIfNeeded(
1861+
missingRefs,
1862+
reference,
1863+
refCtUid,
1864+
reference_to,
1865+
reference,
1866+
`Blt reference ${reference}`,
1867+
)
1868+
) {
18511869
return null;
18521870
}
18531871
log.debug(`Blt reference ${reference} is valid`);

0 commit comments

Comments
 (0)