fix: harden api authentication and validation
This commit is contained in:
1 parent
ae5f26baab
commit
b89853bc94
5 files changed
+75
-28
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { IsIn, IsOptional, IsString } from "class-validator";
|
||||
|
||||
export class UpdateBookingStatusDto {
|
||||
@IsIn(["received", "contacting", "confirmed", "completed", "cancelled"])
|
||||
status!: "received" | "contacting" | "confirmed" | "completed" | "cancelled";
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
adminNote?: string;
|
||||
}
|
||||
Reference in new issue
Block a user