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