1 import { put, takeEvery } from 'redux-saga/effects';
3 import { vaultTransferOwner } from '@proton/pass/lib/vaults/vault.requests';
5 vaultTransferOwnerIntent,
6 vaultTransferOwnershipFailure,
7 vaultTransferOwnershipSuccess,
8 } from '@proton/pass/store/actions';
10 function* resendInviteWorker({ payload, meta: { request } }: ReturnType<typeof vaultTransferOwnerIntent>) {
12 yield vaultTransferOwner(payload);
13 yield put(vaultTransferOwnershipSuccess(request.id, payload.shareId, payload.userShareId));
15 yield put(vaultTransferOwnershipFailure(request.id, err));
19 export default function* watcher() {
20 yield takeEvery(vaultTransferOwnerIntent.match, resendInviteWorker);