From e4add23ce69c9623ac9a005f616978a77e3dafce Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 3 Aug 2021 17:30:36 -0400 Subject: [PATCH] Fix linter warnings --- api/src/middleware/validate-batch.ts | 3 ++- api/src/services/users.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/middleware/validate-batch.ts b/api/src/middleware/validate-batch.ts index 90bcd2538a..594e2e8754 100644 --- a/api/src/middleware/validate-batch.ts +++ b/api/src/middleware/validate-batch.ts @@ -1,6 +1,7 @@ import { RequestHandler } from 'express'; import Joi from 'joi'; -import { FailedValidationException, InvalidPayloadException } from '../exceptions'; +import { InvalidPayloadException } from '../exceptions'; +import { FailedValidationException } from '@directus/shared/exceptions'; import asyncHandler from '../utils/async-handler'; import { sanitizeQuery } from '../utils/sanitize-query'; diff --git a/api/src/services/users.ts b/api/src/services/users.ts index 3a79cffca6..4d615c2ec3 100644 --- a/api/src/services/users.ts +++ b/api/src/services/users.ts @@ -4,8 +4,8 @@ import { Knex } from 'knex'; import { clone, cloneDeep } from 'lodash'; import getDatabase from '../database'; import env from '../env'; +import { FailedValidationException } from '@directus/shared/exceptions'; import { - FailedValidationException, ForbiddenException, InvalidPayloadException, UnprocessableEntityException,