Skip to content

Commit

Permalink
Merge branch 'master' into feature/v5
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Jul 17, 2024
2 parents dfedfbe + bba2bc0 commit deca7fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"moment": "^2.29.4",
"multer": "^1.4.5-lts.1",
"node-pg-migrate": "^6.2.2",
"pg": "^8.11.5",
"pg": "^8.12.0",
"pg-promise": "^10.15.4",
"uuid": "^9.0.1",
"winston": "^3.13.0",
Expand Down
5 changes: 3 additions & 2 deletions src/server/controllers/item/create-item-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ import { DataParsingException } from "../../errors/data-parsing-exception"
import { itemErrorHandler } from "./shared/item-error-handler"

const pg = pgp()
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
const FILE_LIMIT = 5120 * 1024 * 1024

const upload = multer(
{
dest: "./uploads",
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
limits: { fieldSize: 2048 * 1024 * 1024 },
limits: { fieldSize: FILE_LIMIT },
}).fields([
{ name: "kpi", maxCount: 1 },
{ name: "monitoring", maxCount: 1 },
Expand Down

0 comments on commit deca7fe

Please sign in to comment.