mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
fix(atlas): drop the keys the classic map left unused, tag the people reads
- lint:i18n-keys: common.reset, dawarich.bucket.visitedFrom and the two mobileAtlas keys were only read by the classic map and its popups; they go from every locale, and the atlas entry follows its lower count. - lint:tx: AtlasPeopleService.profile also carries @txIndependent, so the method itself is no longer reported for its cache refresh reads.
This commit is contained in:
@@ -103,9 +103,10 @@ export class AtlasPeopleService {
|
||||
* One traveller's counts and badges, read through the Atlas reads the user's
|
||||
* own Atlas uses.
|
||||
*
|
||||
* @txStandalone its only writes are those reads' region cache refreshes, each
|
||||
* complete on its own and safe to repeat, so nothing a caller does around
|
||||
* them needs to share their transaction.
|
||||
* @txIndependent its only writes are those reads' region cache refreshes, each
|
||||
* complete on its own and safe to repeat; nothing ties one to the other.
|
||||
* @txStandalone for the same reason nothing a caller does around them needs
|
||||
* to share their transaction.
|
||||
*/
|
||||
private async profile(id: number): Promise<{ person: Omit<AtlasPerson, 'badges'>; badges: Badge[] }> {
|
||||
const stats = await this.atlas.stats(id);
|
||||
|
||||
Reference in New Issue
Block a user