Skip to content

Commit

Permalink
input dtos for atoms app integration endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryukemeister committed Oct 9, 2024
1 parent 274e5e2 commit 8eabfc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/api/v2/src/modules/atoms/inputs/event-types-app.input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Transform } from "class-transformer";
import { IsNumber, IsOptional } from "class-validator";

export class EventTypesAppInput {
@Transform(({ value }: { value: string }) => value && parseInt(value))
@IsNumber()
@IsOptional()
teamId?: number;
}

0 comments on commit 8eabfc1

Please sign in to comment.