-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(signups): fixes an issue with casing on remove signups (#262)
- Loading branch information
1 parent
73ff251
commit bd6bbfb
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/commands/signup/subcommands/remove-signup/remove-signup.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { IsEnum, IsString } from 'class-validator'; | ||
import { ToLowercase } from '../../../../common/decorators/to-lowercase.js'; | ||
import { Encounter } from '../../../../encounters/encounters.consts.js'; | ||
import { SignupDocument } from '../../../../firebase/models/signup.model.js'; | ||
|
||
class RemoveSignupDto | ||
implements Pick<SignupDocument, 'character' | 'world' | 'encounter'> | ||
{ | ||
@IsString() | ||
@ToLowercase() | ||
character: string; | ||
|
||
@IsEnum(Encounter) | ||
encounter: Encounter; | ||
|
||
@IsString() | ||
@ToLowercase() | ||
world: string; | ||
} | ||
|
||
export { RemoveSignupDto }; |