refactor(server): use cascades for keys and tokens (#2544)

This commit is contained in:
Jason Rasmussen 2023-05-23 16:40:04 -04:00 committed by GitHub
parent e2bd7e1e08
commit 50a792a81a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 100 additions and 126 deletions

View file

@ -0,0 +1,14 @@
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
export class APIKeyCreateDto {
@IsString()
@IsNotEmpty()
@IsOptional()
name?: string;
}
export class APIKeyUpdateDto {
@IsString()
@IsNotEmpty()
name!: string;
}