(owner: OwnerKeys | null, sourceId: string)
| 1307 | const slugMap = new Map<string, string>(); |
| 1308 | const sourceIdsByTenant = new Map<string, Set<string>>(); |
| 1309 | const addSourceIdForOwner = (owner: OwnerKeys | null, sourceId: string): void => { |
| 1310 | if (!owner) return; |
| 1311 | const set = sourceIdsByTenant.get(owner.tenant) ?? new Set<string>(); |
| 1312 | set.add(sourceId); |
| 1313 | sourceIdsByTenant.set(owner.tenant, set); |
| 1314 | }; |
| 1315 | for (const id of input.toolSourceIds) slugMap.set(id, id); |
| 1316 | for (const source of input.sources) { |
| 1317 | slugMap.set(source.id, source.id); |
no test coverage detected