Skip to content

Commit

Permalink
server: fix blank spaces in feedback "message" (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
avine authored Aug 28, 2024
1 parent 83168e3 commit 4dd8988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/feedback/feedback.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LARGE_MAX_LENGTH, MEDIUM_MAX_LENGTH, SMALL_MAX_LENGTH } from './feedbac
export class FeedbackRequestDto {
@IsEmail() @Transform((params) => (params.value as string).toLowerCase()) recipient!: string;

@IsString() @MaxLength(SMALL_MAX_LENGTH) message!: string;
@IsString() @Transform((params) => (params.value as string)?.trim()) @MaxLength(SMALL_MAX_LENGTH) message!: string;

@IsBoolean() shared!: boolean;
}
Expand Down

0 comments on commit 4dd8988

Please sign in to comment.