From 0628157fe9662fdb2b6fa658b8b53fe684c013ce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Dec 2021 14:44:58 +0100 Subject: Move uuid stuff in extra utils Since it requires an external dependency --- server/helpers/custom-validators/misc.ts | 2 +- server/helpers/image-utils.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'server/helpers') diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts index 65578c143..81a60ee66 100644 --- a/server/helpers/custom-validators/misc.ts +++ b/server/helpers/custom-validators/misc.ts @@ -2,7 +2,7 @@ import 'multer' import { UploadFilesForCheck } from 'express' import { sep } from 'path' import validator from 'validator' -import { isShortUUID, shortToUUID } from '@shared/core-utils' +import { isShortUUID, shortToUUID } from '@shared/extra-utils' function exists (value: any) { return value !== undefined && value !== null diff --git a/server/helpers/image-utils.ts b/server/helpers/image-utils.ts index c4704b189..b174ae436 100644 --- a/server/helpers/image-utils.ts +++ b/server/helpers/image-utils.ts @@ -1,6 +1,7 @@ import { copy, readFile, remove, rename } from 'fs-extra' import Jimp, { read } from 'jimp' -import { buildUUID, getLowercaseExtension } from '@shared/core-utils' +import { getLowercaseExtension } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' import { convertWebPToJPG, processGIF } from './ffmpeg-utils' import { logger } from './logger' -- cgit v1.2.3