mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
14 lines
336 B
TypeScript
14 lines
336 B
TypeScript
import { Transform } from 'class-transformer';
|
|
import { IsBoolean } from 'class-validator';
|
|
import { Optional } from '../../domain.util';
|
|
|
|
export class UserCountDto {
|
|
@IsBoolean()
|
|
@Optional()
|
|
@Transform(({ value }) => value === 'true')
|
|
/**
|
|
* When true, return the number of admins accounts
|
|
*/
|
|
admin?: boolean = false;
|
|
}
|