From 45b5fb4088c37cf88f755ae713d6ccec709f9c56 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Mon, 1 Apr 2024 03:06:01 +0200 Subject: [PATCH] fix: syntax error --- packages/server/src/services/Import/_utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/services/Import/_utils.ts b/packages/server/src/services/Import/_utils.ts index 063c7b5b8..95cfb1367 100644 --- a/packages/server/src/services/Import/_utils.ts +++ b/packages/server/src/services/Import/_utils.ts @@ -1,4 +1,5 @@ import * as Yup from 'yup'; +import moment from 'moment'; import { defaultTo, upperFirst, @@ -11,7 +12,6 @@ import { import pluralize from 'pluralize'; import { ResourceMetaFieldsMap } from './interfaces'; import { IModelMetaField } from '@/interfaces'; -import moment from 'moment'; import { ServiceError } from '@/exceptions'; export const ERRORS = { @@ -155,6 +155,7 @@ export const validateSheetEmpty = (sheetData: Array) => { if (isEmpty(sheetData)) { throw new ServiceError(ERRORS.IMPORTED_SHEET_EMPTY); } +} const booleanValuesRepresentingTrue: string[] = ['true', 'yes', 'y', 't', '1']; const booleanValuesRepresentingFalse: string[] = ['false', 'no', 'n', 'f', '0'];