|
@@ -300,7 +300,7 @@
|
|
|
}
|
|
|
const gql = getGql("http://shop-roles.node.ed.asmer.org.ua/graphql");
|
|
|
const actionPromise = (name, promise) => {
|
|
|
- return actionPromiseInt = async (dispatch) => {
|
|
|
+ return async (dispatch) => {
|
|
|
dispatch(actionPending(name)) //сигнализируем redux, что промис начался
|
|
|
try {
|
|
|
let payload = await promise //ожидаем промиса
|
|
@@ -429,7 +429,7 @@
|
|
|
return gql(orderUpsertQuery, { order: { "_id": id, "orderGoods": order } });
|
|
|
}
|
|
|
const orderFullUpsert = (then) => {
|
|
|
- return gqlFullOrderUpsert = async (dispatch, getState) => {
|
|
|
+ return async (dispatch, getState) => {
|
|
|
let state = getState();
|
|
|
let order = [];
|
|
|
for (cartItem of Object.values(state.cartReducer)) {
|