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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
removing race conteset on delting album link
Marek Maslowski74b3b0f9aee8
diff --git a/server/src/services/memories/unifiedService.ts b/server/src/services/memories/unifiedService.tsindex f7d3d1b50..a836524b5 100644--- a/server/src/services/memories/unifiedService.ts+++ b/server/src/services/memories/unifiedService.ts@@ -268,10 +268,13 @@ export function removeAlbumLink(tripId: string, linkId: string, userId: number):}try {- db.prepare('DELETE FROM trip_photos WHERE trip_id = ? AND album_link_id = ?')- .run(tripId, linkId);- db.prepare('DELETE FROM trip_album_links WHERE id = ? AND trip_id = ? AND user_id = ?')- .run(linkId, tripId, userId);+ db.transaction(() => {+ db.prepare('DELETE FROM trip_photos WHERE trip_id = ? AND album_link_id = ?')+ .run(tripId, linkId);+ db.prepare('DELETE FROM trip_album_links WHERE id = ? AND trip_id = ? AND user_id = ?')+ .run(linkId, tripId, userId);+ })();+return success(true);} catch (error) {return mapDbError(error, 'Failed to remove album link');