Returns summary info for sessions owned by a specific user.
(userId: string)
| 168 | |
| 169 | /** Returns summary info for sessions owned by a specific user. */ |
| 170 | listByUser(userId: string): SessionInfo[] { |
| 171 | return this.list().filter((s) => s.userId === userId); |
| 172 | } |
| 173 | |
| 174 | /** How many sessions are owned by the given user. */ |
| 175 | countByUser(userId: string): number { |