Skip to content

Commit

Permalink
fix: correct wrong variable name for fileUploadLimitInMb
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Nov 12, 2024
1 parent 82cdb31 commit e3c5ca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ async function bootstrap() {
}),
);

const fileUploadLimitInMb = configService.get<number>("fileUploadLimitInMb");
const fileUploadLimitInMb = configService.get<number>(
"maxFileUploadSizeInMb",
);

app.useBodyParser("json", { limit: fileUploadLimitInMb });
app.useBodyParser("urlencoded", {
Expand Down

0 comments on commit e3c5ca3

Please sign in to comment.