diff --git a/server/src/db/migrations.ts b/server/src/db/migrations.ts index 5a31eef..1c3f7b3 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 ff83738..5743b79 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',