(item: T)
| 30 | const locationNameById = await buildLocationNamesById(client) |
| 31 | |
| 32 | const withLocation = <T extends WithLocation>(item: T): T & WithNamedLocation => |
| 33 | ({ ...item, location: item.locationId ? locationNameById.get(item.locationId) ?? '<invalid locationId>' : '' }) |
| 34 | |
| 35 | return list.map(item => withLocation(item)) |
| 36 | } |
no test coverage detected