actionSnippetFindByOwner.js 246 B

123456
  1. import { actionPromise } from "./actionPromise";
  2. import { snippetByOwner } from "./requests";
  3. export const actionSnippetFindByOwner = (id) => async (dispatch) => {
  4. return await dispatch(actionPromise("findSnippet", snippetByOwner(id)));
  5. };