mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
fix: syntax error
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import * as Yup from 'yup';
|
import * as Yup from 'yup';
|
||||||
|
import moment from 'moment';
|
||||||
import {
|
import {
|
||||||
defaultTo,
|
defaultTo,
|
||||||
upperFirst,
|
upperFirst,
|
||||||
@@ -11,7 +12,6 @@ import {
|
|||||||
import pluralize from 'pluralize';
|
import pluralize from 'pluralize';
|
||||||
import { ResourceMetaFieldsMap } from './interfaces';
|
import { ResourceMetaFieldsMap } from './interfaces';
|
||||||
import { IModelMetaField } from '@/interfaces';
|
import { IModelMetaField } from '@/interfaces';
|
||||||
import moment from 'moment';
|
|
||||||
import { ServiceError } from '@/exceptions';
|
import { ServiceError } from '@/exceptions';
|
||||||
|
|
||||||
export const ERRORS = {
|
export const ERRORS = {
|
||||||
@@ -155,6 +155,7 @@ export const validateSheetEmpty = (sheetData: Array<any>) => {
|
|||||||
if (isEmpty(sheetData)) {
|
if (isEmpty(sheetData)) {
|
||||||
throw new ServiceError(ERRORS.IMPORTED_SHEET_EMPTY);
|
throw new ServiceError(ERRORS.IMPORTED_SHEET_EMPTY);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const booleanValuesRepresentingTrue: string[] = ['true', 'yes', 'y', 't', '1'];
|
const booleanValuesRepresentingTrue: string[] = ['true', 'yes', 'y', 't', '1'];
|
||||||
const booleanValuesRepresentingFalse: string[] = ['false', 'no', 'n', 'f', '0'];
|
const booleanValuesRepresentingFalse: string[] = ['false', 'no', 'n', 'f', '0'];
|
||||||
|
|||||||
Reference in New Issue
Block a user