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