Await dispatch does not seem to be working (VueX)

I have functions createSwipe, fetchUserSwipes, and fetchSwipedUserSwipes. I call fetchUserSwipes and fetchSwipedUserSwipes inside createSwipe using these:

await dispatch('fetchSwipedUserSwipes', swipedUserId);
await dispatch('fetchUserSwipes', userId);

They don’t seem to be called because the console logs I included in those functions are not printing in the console. These are the console logs:

//in fetchUserSwipes
console.log('Fetched User swipes:', data.userSwipes);

//in fetchSwipedUserSwipes
console.log('Fetched Swiped User swipes:', data.userSwipes);

Here is the rest of the code:

import { gql } from '@apollo/client/core';
import { apolloProvider } from '@/apollo-config'; 

const GET_TOTAL_SWIPES = gql`
    query {
        totalSwipes
    }
`;

const CREATE_SWIPE = gql`
    mutation($input: CreateSwipeInput!) {
        createSwipe(input: $input) {
            id
            userId
            swipedUserId
            likedBack
            createdAt
            updatedAt
        }
    }
`;

const GET_USER_SWIPES = gql`
  query GetUserSwipes($userId: ID!) {
    userSwipes(userId: $userId) {
      id
      userId
      swipedUserId
      likedBack
    }
  }
`;

const state = {
  totalSwipes: 0,
  userSwipes: {},
  swipedUserSwipes: {},  
  errorMessage: '',
};

const getters = {
  getTotalSwipes: state => state.totalSwipes,
  getUserSwipes: state => state.userSwipes,
  getSwipedUserSwipes: state => state.swipedUserSwipes,
  getSwipesCountErrorMessage: state => state.errorMessage,
  getCreateSwipeErrorMessage: state => state.errorMessage,
};

const actions = {
    async fetchTotalSwipes({ commit }) {
        try {
            const { data } = await apolloProvider.defaultClient.query({
                query: GET_TOTAL_SWIPES,
            });
            commit('SET_TOTAL_SWIPES', data.totalSwipes);
            console.log('Total Swipes:', data.totalSwipes);
        } catch (error) {
            commit('SET_ERROR_MESSAGE', error.message);
        }
    },
    async createSwipe({ commit, dispatch, getters }, { userId, swipedUserId }) {
      try {
        const { data } = await apolloProvider.defaultClient.mutate({
          mutation: CREATE_SWIPE,
          variables: { input: { userId, swipedUserId } },
        });
  
        const swipe = data.createSwipe;
  
        // Fetch swipes for the swiped user
        await dispatch('fetchSwipedUserSwipes', swipedUserId);
        await dispatch('fetchUserSwipes', userId);
  
        // Get the swiped user's swipes from the getter
        const swipedUserSwipes = getters.getSwipedUserSwipes[swipedUserId] || [];
        const matchingSwipe = swipedUserSwipes.find(swipe => swipe.userId === userId);
  
        if (matchingSwipe) {
          // Set likedBack to true for both users
          matchingSwipe.likedBack = true;
          swipe.likedBack = true;
  
          // Create matches for both users
          await dispatch('matches/createMatch', { userId, matchedUserId: swipedUserId }, { root: true });
          await dispatch('matches/createMatch', { userId: swipedUserId, matchedUserId: userId }, { root: true });
        }
      } catch (error) {
        commit('SET_ERROR_MESSAGE', error.message);
      }
    },
    async fetchSwipedUserSwipes({ commit }, userId) {
      try {
        const { data } = await apolloProvider.defaultClient.query({
          query: GET_USER_SWIPES,
          variables: { userId },
        });
        commit('SET_SWIPED_USER_SWIPES', { userId, swipes: data.userSwipes });
        console.log('Fetched Swiped User swipes:', data.userSwipes);
      } catch (error) {
        commit('SET_ERROR_MESSAGE', error.message);
      }
    },       
    async fetchUserSwipes({ commit }, userId) {
      try {
        const { data } = await apolloProvider.defaultClient.query({
          query: GET_USER_SWIPES,
          variables: { userId },
        });
  
        commit('SET_USER_SWIPES', { userId, swipes: data.userSwipes });
        console.log('Fetched User swipes:', data.userSwipes);
      } catch (error) {
        commit('SET_ERROR_MESSAGE', error.message);
      }
    },
};

const mutations = {
  SET_TOTAL_SWIPES(state, totalSwipes) {
      state.totalSwipes = totalSwipes;
  },
  SET_USER_SWIPES(state, { userId, swipes }) {
    state.userSwipes = {
      ...state.userSwipes,
      [userId]: swipes,
    };
  },
  SET_SWIPED_USER_SWIPES(state, { userId, swipes }) {
    state.swipedUserSwipes = {
      ...state.swipedUserSwipes,
      [userId]: swipes,
    };
  },
  SET_ERROR_MESSAGE(state, message) {
      state.errorMessage = message;
  },
};

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations,
};

Any help would be greatly appreciated. Thank you so much.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật