Skip to content

Commit d69d495

Browse files
committed
🧼 clean: uuidv4 -\> uuid.v4 변경
1 parent 5bca60a commit d69d495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/common/disk/fileUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { join } from 'path';
22
import { ensureDirSync } from 'fs-extra';
33
import { promises as fs } from 'fs';
44
import { existsSync } from 'fs';
5-
import { v4 as uuidv4 } from 'uuid';
5+
import * as uuid from 'uuid';
66
import { BadRequestException } from '@nestjs/common';
77
import { FileUploadType } from './fileValidator';
88

@@ -16,7 +16,7 @@ export const generateFilePath = (originalPath: string): string => {
1616

1717
export const getFileName = (file: any): string => {
1818
const ext = file.originalname.split('.').pop()?.toLowerCase() || '';
19-
return `${uuidv4()}.${ext}`;
19+
return `${uuid.v4()}.${ext}`;
2020
};
2121

2222
export const createDirectoryIfNotExists = (uploadType: string): string => {

0 commit comments

Comments
 (0)