Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(share): compare the pending rendition build with undefined

Maurice100313cfa9e3
diff --git a/server/src/nest/memories/public-media.service.ts b/server/src/nest/memories/public-media.service.ts
index 2afaf6ef8..3288dd68a 100644
--- a/server/src/nest/memories/public-media.service.ts
+++ b/server/src/nest/memories/public-media.service.ts
@@ -73,7 +73,7 @@ export class PublicMediaService {
const key = `${category}/${name}`;
let pending = this.inFlight.get(key);
- if (!pending) {
+ if (pending === undefined) {
pending = this.build(category, name, rendition).finally(() => this.inFlight.delete(key));
this.inFlight.set(key, pending);
}