test(e2e): hand-made schemas follow the new columns; placing entries never blocks the refresh

This commit is contained in:
Maurice
2026-10-01 15:18:30 +02:00
parent 39074f6d46
commit 62950aed24
6 changed files with 27 additions and 8 deletions
@@ -75,7 +75,14 @@ export class JourneyPhotoCaptureService {
* which the owner can still name by hand.
*/
async placeEntries(trekPhotoIds: number[]): Promise<number> {
const placed = this.journey.placeEntriesFromPhotos(trekPhotoIds);
let placed: ReturnType<JourneyDomainService['placeEntriesFromPhotos']>;
try {
placed = this.journey.placeEntriesFromPhotos(trekPhotoIds);
} catch (err) {
// An extra on top of the capture times: it must never cost the refresh below it.
console.error('[Journey] placing entries from photos failed:', err instanceof Error ? err.message : err);
return 0;
}
if (!placed.length) return 0;
await Promise.all(placed.map(async (p) => {
try {