chore(deps): upgrade uuid to 11.0.3

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-11-11 16:14:08 +01:00
parent f8984c92cc
commit 0bb09a1597
4 changed files with 15 additions and 17 deletions

View file

@ -8,7 +8,7 @@ import { ModuleRef } from '@nestjs/core';
import { InjectRepository } from '@nestjs/typeorm';
import * as FileType from 'file-type';
import { Repository } from 'typeorm';
import { v4 as uuidV4 } from 'uuid';
import { v7 as uuidV7 } from 'uuid';
import mediaConfiguration, { MediaConfig } from '../config/media.config';
import { ClientError, NotInDBError } from '../errors/errors';
@ -97,7 +97,7 @@ export class MediaService {
if (!MediaService.isAllowedMimeType(fileTypeResult.mime)) {
throw new ClientError('MIME type not allowed.');
}
const uuid = uuidV4(); // TODO replace this with uuid-v7 in a later PR
const uuid = uuidV7();
const backendData = await this.mediaBackend.saveFile(
uuid,
fileBuffer,