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 3077b20a06
No known key found for this signature in database
GPG key ID: DB99ADDDC5C0AF82
4 changed files with 15 additions and 17 deletions

View file

@ -66,7 +66,7 @@
"rxjs": "7.8.1",
"sqlite3": "5.1.7",
"typeorm": "0.3.20",
"uuid": "10.0.0",
"uuid": "11.0.3",
"ws": "8.18.0",
"yjs": "13.6.20"
},
@ -91,7 +91,6 @@
"@types/pg": "8.11.10",
"@types/source-map-support": "0.5.10",
"@types/supertest": "2.0.16",
"@types/uuid": "10.0.0",
"@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",

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,