Skip to content

Commit 57f6407

Browse files
committed
fix: typo pick single field multer
1 parent b4d66c0 commit 57f6407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/Multer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { pickBy } from 'lodash'
33
import { Request } from 'express'
44

5-
function pickSingelFieldMulter(req: Request, fields: string[]) {
5+
function pickSingleFieldMulter(req: Request, fields: string[]) {
66
return pickBy(
77
fields.reduce<any>((acc, field) => {
88
acc[field] = req.getSingleArrayFile(field)
@@ -15,7 +15,7 @@ function pickSingelFieldMulter(req: Request, fields: string[]) {
1515
}
1616

1717
const Multers = {
18-
pickSingelFieldMulter,
18+
pickSingleFieldMulter,
1919
}
2020

2121
export default Multers

0 commit comments

Comments
 (0)