From 8057688da3b20b063fe37ce7a2dadd7750eb6d16 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 30 Nov 2026 00:24:37 +0000 Subject: [PATCH] fix(places): say why registering the join listeners writes nothing itself onModuleInit only hands the list and trip joins their listener; each join then carries the joiner's votes in a transaction of its own, which lint:tx reads from the @txIndependent note. --- server/src/nest/places-library/place-votes.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/nest/places-library/place-votes.service.ts b/server/src/nest/places-library/place-votes.service.ts index 63052b00a..7d350425c 100644 --- a/server/src/nest/places-library/place-votes.service.ts +++ b/server/src/nest/places-library/place-votes.service.ts @@ -220,7 +220,10 @@ export class PlaceVotesService implements OnModuleInit { } } - /** Registers the joins of lists and trips (join-listeners.ts). */ + /** + * Registers the joins of lists and trips (join-listeners.ts). + * @txIndependent only registers the listeners; each join carries its votes in a transaction of its own (joined). + */ onModuleInit(): void { this.collections.joins.add((collectionId, userId) => this.joined({ kind: 'list', id: collectionId }, userId)); this.membership.joins.add((tripId, userId) => this.joined({ kind: 'trip', id: tripId }, userId));