Skip to content

Commit

Permalink
Merge pull request #171 from aeternity/feature/trigger-cache-invalidate
Browse files Browse the repository at this point in the history
Trigger cache invalidate
  • Loading branch information
mradkov authored Apr 16, 2020
2 parents 1f4c088 + 25a2cfa commit 40e2a45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/popup/router/components/ClaimTips.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { mapGetters } from 'vuex';
import axios from 'axios';
import { aettosToAe } from '../../utils/helper';
import { TIP_SERVICE } from '../../utils/constants';
import { TIP_SERVICE, BACKEND_URL } from '../../utils/constants';
import BoxButton from './BoxButton';
import Claim from '../../../icons/claim-icon.svg?vue-component';
Expand Down Expand Up @@ -48,6 +48,8 @@ export default {
throw new Error(this.$t('pages.claim.oracleFailed'));
else throw new Error(error);
});
await axios.post(`${BACKEND_URL}/cache/invalidate/tip`).catch();
await axios.post(`${BACKEND_URL}/cache/invalidate/oracle`).catch();
this.$emit('setLoading', false);
this.$store.dispatch('modals/open', { name: 'claim-success', url: tab.url, claimAmount });
} catch (e) {
Expand Down

1 comment on commit 40e2a45

@davidyuk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.