fix: persist the prior-archive cutoff date when the owner changes it
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,12 +2,14 @@ import {
|
||||
ArrayMinSize,
|
||||
IsArray,
|
||||
IsIn,
|
||||
IsISO8601,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MaxLength,
|
||||
Min,
|
||||
MinLength,
|
||||
ValidateIf,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
import { Type } from 'class-transformer';
|
||||
@@ -72,5 +74,8 @@ export class UpdateOrganizationDto {
|
||||
export class UpdatePriorArchiveCutoffDto
|
||||
implements UpdatePriorArchiveCutoffRequest
|
||||
{
|
||||
/** بدون دکوراتور، whitelist پایپ Nest فیلد را حذف میکرد و ذخیره همیشه خطا میداد. */
|
||||
@ValidateIf((_, value) => value !== null)
|
||||
@IsISO8601()
|
||||
cutoffAt!: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user