mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 11:18:17 +00:00
fix issues
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsInt, Min } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Shorten the booking-close offset of ONE schedule whose booking shut only
|
||||
* because of that offset (staff action on the ops board). The value replaces the
|
||||
* schedule's frozen offset; 0 means "close at departure".
|
||||
*/
|
||||
export class ReduceScheduleCloseOffsetDto {
|
||||
@ApiProperty({
|
||||
example: 120,
|
||||
description:
|
||||
'New minutes-before-departure at which booking closes. Must be shorter than the current offset; 0 = close at departure.',
|
||||
})
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
closeOffsetMinutes!: number;
|
||||
}
|
||||
Reference in New Issue
Block a user