Skip to content
Snippets Groups Projects
Commit 7d7e44bf authored by Ronnie Friman's avatar Ronnie Friman
Browse files

added notificationDTO

parent 4aa0c47c
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!33Small fixes
import { IsString, Length, IsUUID, IsIn } from 'class-validator';
export class NotificationdDTO {
// alert is for serious messages, note is for smaller updates on a situation
@IsIn(['alert', 'note'])
type: string;
@IsString()
@Length(0, 63)
message: string;
@IsUUID('4')
game: string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment