Skip to content

Commit ec50632

Browse files
committed
fix:
1 parent 5f72aa8 commit ec50632

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export enum Mimetype {
88
Png = 'image/png'
99
}
1010

11-
export enum ImageSizeInMB {
11+
export enum ImageSizeInMb {
1212
Ten = 10
1313
}

src/infrastructure/upload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Request } from 'express'
22
import multer, { FileFilterCallback } from 'multer'
33

4-
import { ImageSizeInMB, Mimetype } from '@/constants'
4+
import { ImageSizeInMb, Mimetype } from '@/constants'
55
import { mbToBytes } from '@/utils/math'
66
import { joinRelativeToMainPath } from '@/utils/paths'
77

@@ -21,7 +21,7 @@ const fileFilter = (
2121

2222
const upload = multer({
2323
dest: joinRelativeToMainPath(process.env.STORAGE_PATH),
24-
limits: { fileSize: mbToBytes(ImageSizeInMB.Ten) },
24+
limits: { fileSize: mbToBytes(ImageSizeInMb.Ten) },
2525
fileFilter
2626
})
2727

0 commit comments

Comments
 (0)