@@ -354,8 +354,8 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
354
354
collectionId,
355
355
key: attribute.key,
356
356
required: attribute.required,
357
- min: parseInt( attribute.min.toString()) ,
358
- max: parseInt( attribute.max.toString()) ,
357
+ min: attribute.min,
358
+ max: attribute.max,
359
359
xdefault: attribute.default,
360
360
array: attribute.array,
361
361
parseOutput: false
@@ -366,8 +366,8 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
366
366
collectionId,
367
367
key: attribute.key,
368
368
required: attribute.required,
369
- min: parseFloat( attribute.min.toString()) ,
370
- max: parseFloat( attribute.max.toString()) ,
369
+ min: attribute.min,
370
+ max: attribute.max,
371
371
xdefault: attribute.default,
372
372
array: attribute.array,
373
373
parseOutput: false
@@ -471,8 +471,8 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
471
471
collectionId,
472
472
key: attribute.key,
473
473
required: attribute.required,
474
- min: parseInt( attribute.min.toString()) ,
475
- max: parseInt( attribute.max.toString()) ,
474
+ min: attribute.min,
475
+ max: attribute.max,
476
476
xdefault: attribute.default,
477
477
array: attribute.array,
478
478
parseOutput: false
@@ -483,8 +483,8 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
483
483
collectionId,
484
484
key: attribute.key,
485
485
required: attribute.required,
486
- min: parseFloat( attribute.min.toString()) ,
487
- max: parseFloat( attribute.max.toString()) ,
486
+ min: attribute.min,
487
+ max: attribute.max,
488
488
xdefault: attribute.default,
489
489
array: attribute.array,
490
490
parseOutput: false
0 commit comments