fix: add knowledgeBaseId to ReadingEventUploadItemDto + increase Max delta
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 47s

iOS sends knowledgeBaseId in batch upload but DTO didn't have it,
causing forbidNonWhitelisted to reject with 400.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-19 12:15:56 +08:00
parent 43293a48e6
commit fb7ee358ce

View File

@ -22,7 +22,7 @@ export class ReadingEventUploadItemDto {
@IsInt() @IsInt()
@Min(0) @Min(0)
@Max(300) @Max(3600)
activeSecondsDelta!: number; activeSecondsDelta!: number;
@IsInt() @IsInt()
@ -41,6 +41,10 @@ export class ReadingEventUploadItemDto {
@IsOptional() @IsOptional()
@IsInt() @IsInt()
clientTimezoneOffsetMinutes?: number; clientTimezoneOffsetMinutes?: number;
@IsOptional()
@IsString()
knowledgeBaseId?: string;
} }
export class BatchUploadReadingEventsDto { export class BatchUploadReadingEventsDto {