mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-06-23 17:40:47 +02:00
move to required ids
This commit is contained in:
@@ -2,5 +2,5 @@ import { EntityID } from '../validators/entity-id.validator';
|
||||
|
||||
export class EntityIDObject {
|
||||
@EntityID()
|
||||
id: number;
|
||||
id: string;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsDefined, IsInt, IsOptional, ValidateNested } from 'class-validator';
|
||||
import { NameRolesUser } from '../entities/user.entity';
|
||||
import { EUser } from '../entities/user.entity';
|
||||
|
||||
export class JwtDataDto {
|
||||
@IsDefined()
|
||||
@ValidateNested()
|
||||
@Type(() => NameRolesUser)
|
||||
user: NameRolesUser;
|
||||
@Type(() => EUser)
|
||||
user: EUser;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
|
||||
Reference in New Issue
Block a user