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.

post merge

Marek Maslowski0d3a10120a0d
diff --git a/server/src/db/migrations.ts b/server/src/db/migrations.ts
index 5a31eefda..1c3f7b31e 100644
--- a/server/src/db/migrations.ts
+++ b/server/src/db/migrations.ts
@@ -735,7 +735,7 @@ function runMigrations(db: Database.Database): void {
},
() => {
try {db.exec('UPDATE addons SET enabled = 0 WHERE id = memories');} catch (err) {}
- }
+ },
// Migration 69: Place region cache for sub-national Atlas regions
() => {
db.exec(`
diff --git a/server/src/services/memories/unifiedService.ts b/server/src/services/memories/unifiedService.ts
index ff837383c..5743b795f 100644
--- a/server/src/services/memories/unifiedService.ts
+++ b/server/src/services/memories/unifiedService.ts
@@ -293,6 +293,9 @@ async function _notifySharedTripPhotos(
const actorRow = db.prepare('SELECT username FROM users WHERE id = ?').get(actorUserId) as { username: string | null };
const tripInfo = db.prepare('SELECT title FROM trips WHERE id = ?').get(tripId) as { title: string } | undefined;
+
+
+ //send({ event: 'photos_shared', actorId: authReq.user.id, scope: 'trip', targetId: Number(tripId), params: { trip: tripInfo?.title || 'Untitled', actor: authReq.user.email, count: String(added), tripId: String(tripId) } }).catch(() => {});
await notifyTripMembers(Number(tripId), actorUserId, 'photos_shared', {
trip: tripInfo?.title || 'Untitled',
actor: actorRow?.username || 'Unknown',