Skip to content

Commit 6d8b6f2

Browse files
committed
refactor: Make sure min and max are numbers
1 parent 069f70c commit 6d8b6f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
344344
collectionId,
345345
key: attribute.key,
346346
required: attribute.required,
347-
min: attribute.min,
348-
max: attribute.max,
347+
min: parseInt(attribute.min.toString()),
348+
max: parseInt(attribute.max.toString()),
349349
xdefault: attribute.default,
350350
array: attribute.array,
351351
parseOutput: false
@@ -356,8 +356,8 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
356356
collectionId,
357357
key: attribute.key,
358358
required: attribute.required,
359-
min: attribute.min,
360-
max: attribute.max,
359+
min: parseFloat(attribute.min.toString()),
360+
max: parseFloat(attribute.max.toString()),
361361
xdefault: attribute.default,
362362
array: attribute.array,
363363
parseOutput: false

0 commit comments

Comments
 (0)