Skip to content

Commit

Permalink
🐛 Fix validateNumber to correctly parse max option
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 25, 2024
1 parent 14833d5 commit 305e711
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const validateNumber = (
? Number(parseVariables(variables)(options.min))
: undefined;
const max =
options?.min && typeof options.min === "string"
? Number(parseVariables(variables)(options.min))
options?.max && typeof options.max === "string"
? Number(parseVariables(variables)(options.max))
: undefined;
return (
(isNotDefined(min) || parsedNumber >= min) &&
Expand Down
9 changes: 9 additions & 0 deletions packages/scripts/src/inspectTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ const inspectTypebot = async () => {
id: true,
},
},
collaborators: {
select: {
user: {
select: {
email: true,
},
},
},
},
workspace: {
select: {
id: true,
Expand Down

0 comments on commit 305e711

Please sign in to comment.