mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
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:
@@ -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)}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user