mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
13 lines
304 B
TypeScript
13 lines
304 B
TypeScript
import { Transform } from 'class-transformer';
|
|
import { IsBoolean, IsOptional } from 'class-validator';
|
|
|
|
export class UserCountDto {
|
|
@IsBoolean()
|
|
@IsOptional()
|
|
@Transform(({ value }) => value === 'true')
|
|
/**
|
|
* When true, return the number of admins accounts
|
|
*/
|
|
admin?: boolean = false;
|
|
}
|