Skip to content

Commit

Permalink
[FIX] Bug na parte de retornar valor 'undefined' quando não tem valor (
Browse files Browse the repository at this point in the history
…#256)

* fix(lambda): 🐛 Update lambdaGetParameters function to handle missing parameters

* fix(lambda): ⬆️ Update package version to 1.3.7
  • Loading branch information
Viserion77 authored Apr 15, 2024
1 parent d33b564 commit 59b55a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 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
@@ -1,6 +1,6 @@
{
"name": "adapcon-utils-js",
"version": "1.3.6",
"version": "1.3.7",
"description": "Utils library for Javascript",
"keywords": [],
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/lambda/lambdaGetParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const extractParams = (docfy: Docfy, parameter: string, evt: APIGatewayEvent) =>

if (isRequired && !hasValue && !hasParamValue) {
errs[keyBase] = `Missing(${parameter}) ${value.label}`
} else {
} else if (hasValue) {
params[identity] = param
}
}
Expand Down

0 comments on commit 59b55a1

Please sign in to comment.