Method should not be async

This commit is contained in:
James Cole
2023-10-07 07:20:01 +02:00
parent 8e183d8cad
commit 2ea9369f99
10 changed files with 24 additions and 30 deletions

View File

@@ -32,7 +32,6 @@ import formatMoney from "../../util/format-money.js";
let afterPromises = false;
let i18n; // for translating items in the chart.
let apiData = [];
const SUBSCRIPTION_CACHE_KEY = 'subscriptions-data-dashboard';
let subscriptionData = {};
function downloadSubscriptions(params) {
@@ -191,7 +190,7 @@ export default () => ({
console.log('here we are');
const cacheValid = window.store.get('cacheValid');
let cachedData = window.store.get(getCacheKey(SUBSCRIPTION_CACHE_KEY, start, end));
let cachedData = window.store.get(getCacheKey('subscriptions-data-dashboard', start, end));
if (cacheValid && typeof cachedData !== 'undefined' && false) {
console.error('cannot handle yet');