fix(ci): resolve Journey strict checks and test contexts

Give the upload DTO an object for file-only requests, make UI error keys discoverable, and run the digest fixtures with the same ORM context as scheduled jobs.
This commit is contained in:
Maurice
2026-11-30 17:41:53 +01:00
parent 0c08a6dcb9
commit 21391e483d
40 changed files with 47 additions and 72 deletions
@@ -29,7 +29,7 @@ function withJourney(text: string, journey: string): string {
}
/** The page that confirms an address. */
export function confirmUrl(confirmToken: string): string {
function confirmUrl(confirmToken: string): string {
return `${getAppUrl()}/public/journey-follow/confirm?token=${encodeURIComponent(confirmToken)}`;
}
@@ -39,7 +39,7 @@ export function unsubscribeUrl(unsubscribeToken: string): string {
}
/** The shared journey itself. */
export function publicJourneyUrl(linkToken: string): string {
function publicJourneyUrl(linkToken: string): string {
return `${getAppUrl()}/public/journey/${encodeURIComponent(linkToken)}`;
}
+1 -1
View File
@@ -61,7 +61,7 @@ export class JourneyPhotoUpdateDto extends createZodDto(journeyPhotoUpdateReques
/** Photos of an entry moved to another entry: strict, a new route with nothing older to keep answering. */
export class JourneyPhotosMoveDto extends createZodDto(journeyPhotosMoveRequestSchema) {}
export class JourneyEntryPhotoUploadDto extends createZodDto(journeyEntryPhotoUploadRequestSchema) {}
export class JourneyGalleryPhotoUploadDto extends createZodDto(journeyGalleryPhotoUploadRequestSchema) {}
export class JourneyGalleryPhotoUploadDto extends createZodDto(journeyGalleryPhotoUploadRequestSchema.default({})) {}
export class JourneyGalleryVideoDto extends createZodDto(journeyGalleryVideoRequestSchema) {}
/** Draft entries from gallery photos (#1920): strict, new routes with nothing older to keep answering. */
export class JourneyEntriesFromPhotosPreviewDto extends createZodDto(journeyEntriesFromPhotosPreviewRequestSchema) {}