Skip to content

Commit 308bdb2

Browse files
committed
explanation comments
1 parent 3de2020 commit 308bdb2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/crons/websocket/room.key.generator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ export class RoomKeyGenerator {
99
dtoClass: Function,
1010
): string[] {
1111
const allowedKeys = this.getKeys(dtoClass);
12+
// Collect active filters based on allowed keys and provided data
1213
const activeFilters = this.collectActiveFilters(allowedKeys, data);
1314

1415
if (activeFilters.length === 0) {
1516
return [];
1617
}
1718

19+
// Generate all combinations of room keys based on active filters
1820
return this.buildRoomKeys(prefix, activeFilters);
1921
}
2022

0 commit comments

Comments
 (0)