Skip to content

Commit 6165237

Browse files
refactor: remove unnecessary content type validation in putTestData function
1 parent 59158f8 commit 6165237

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

api/src/services/contentMapper.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ const putTestData = async (req: Request) => {
6666
*/
6767
await FieldMapperModel.read();
6868

69-
if (!Array.isArray(contentTypes)) {
70-
throw new BadRequestError(HTTP_TEXTS.CONTENT_TYPE_INVALID);
71-
}
72-
7369
contentTypes.map((type: any, index: any) => {
7470
const fieldIds: string[] = [];
7571
const fields = Array?.isArray?.(type?.fieldMapping) ? type?.fieldMapping?.filter((field: any) => field)?.map?.((field: any) => {

0 commit comments

Comments
 (0)