fix: no floats (replace with doubles) (#10218)

* fix: no floats (replace with doubles)

* Update server/src/utils/misc.ts

Co-authored-by: Zack Pollard <zackpollard@ymail.com>

---------

Co-authored-by: Zack Pollard <zackpollard@ymail.com>
This commit is contained in:
Jason Rasmussen 2024-06-12 12:36:24 -04:00 committed by GitHub
parent 10aa00af21
commit 3d82005797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 17 deletions

View file

@ -21,7 +21,7 @@ export class DuplicateDetectionConfig extends TaskConfig {
@Min(0.001)
@Max(0.1)
@Type(() => Number)
@ApiProperty({ type: 'number', format: 'float' })
@ApiProperty({ type: 'number', format: 'double' })
maxDistance!: number;
}
@ -30,14 +30,14 @@ export class FacialRecognitionConfig extends ModelConfig {
@Min(0)
@Max(1)
@Type(() => Number)
@ApiProperty({ type: 'number', format: 'float' })
@ApiProperty({ type: 'number', format: 'double' })
minScore!: number;
@IsNumber()
@Min(0)
@Max(2)
@Type(() => Number)
@ApiProperty({ type: 'number', format: 'float' })
@ApiProperty({ type: 'number', format: 'double' })
maxDistance!: number;
@IsNumber()

View file

@ -21,7 +21,7 @@ export class ServerStorageResponseDto {
@ApiProperty({ type: 'integer', format: 'int64' })
diskAvailableRaw!: number;
@ApiProperty({ type: 'number', format: 'float' })
@ApiProperty({ type: 'number', format: 'double' })
diskUsagePercentage!: number;
}