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.
This commit is contained in:
Maurice
2026-11-30 00:24:37 +00:00
parent 29ae0de1ef
commit 8057688da3
@@ -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));