You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/frontend/src/@redux/actions/providers.ts

14 lines
419 B

import { ProvidersApi } from "../../apis";
import { PROVIDER_UPDATE_LIST } from "../constants";
import { createAsyncAction, createCombineAction } from "./factory";
import { badgeUpdateAll } from "./site";
const providerUpdateList = createAsyncAction(PROVIDER_UPDATE_LIST, () =>
ProvidersApi.providers()
);
export const providerUpdateAll = createCombineAction(() => [
providerUpdateList(),
badgeUpdateAll(),
]);