(envelope: Envelope, profiles: Profile[])
| 333 | * @returns {Envelope} |
| 334 | */ |
| 335 | export function addProfilesToEnvelope(envelope: Envelope, profiles: Profile[]): Envelope { |
| 336 | if (!profiles.length) { |
| 337 | return envelope; |
| 338 | } |
| 339 | |
| 340 | for (const profile of profiles) { |
| 341 | // @ts-expect-error untyped envelope |
| 342 | envelope[1].push([{ type: 'profile' }, profile]); |
| 343 | } |
| 344 | return envelope; |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * Finds transactions with profile_id context in the envelope |
no test coverage detected