Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / store / sagas / monitor / breaches.proton.saga.ts
bloba3d2bf42d335728e30ea5300550bbc6f65f945b6
1 import { getBreachesForProtonAddress } from '@proton/pass/lib/monitor/monitor.request';
2 import { intoFetchedBreach } from '@proton/pass/lib/monitor/monitor.utils';
3 import { getProtonBreach } from '@proton/pass/store/actions';
4 import { createRequestSaga } from '@proton/pass/store/request/sagas';
6 export default createRequestSaga({
7     actions: getProtonBreach,
8     call: async (addressId) => (await getBreachesForProtonAddress(addressId)).Breaches.map(intoFetchedBreach),
9 });