mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 23:16:46 +00:00
test(e2e): hand-made schemas follow the new columns; placing entries never blocks the refresh
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user