fix: persist the prior-archive cutoff date when the owner changes it

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-18 16:31:19 +03:30
co-authored by Cursor
parent 23f8da2c65
commit 61d17c5cea
2 changed files with 21 additions and 5 deletions
+5
View File
@@ -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;
}