Commit 0922492
committed
refactor(CollectorInvite): drop manual #accessInfo short-circuit, delegate to lib cache
pryv@3.1.0 introduces a per-Connection accessInfo cache with the same
`forceRefresh` parameter the wrapper already exposed. The local
short-circuit `if (!forceRefresh && this.#accessInfo) return this.#accessInfo`
became redundant.
Kept:
- `#accessInfo` field as a sync-read mirror for the `patientUsername` getter
- `forceRefresh` parameter passed through to the lib (Phase 2 test fix
shows real callers need this after revoke/delete)
- `invalid-access-token` → revokeInvite side effect
Plan 58 Phase 4a. 488/488 tests pass.1 parent e7cf0bf commit 0922492
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | | - | |
167 | 171 | | |
168 | | - | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
0 commit comments