mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user