fix(worker): return any thing so cachable cache the request
This commit is contained in:
@@ -6,7 +6,6 @@ import { logger } from '@/utils/logger';
|
|||||||
import {
|
import {
|
||||||
db,
|
db,
|
||||||
getOrganizationBillingEventsCount,
|
getOrganizationBillingEventsCount,
|
||||||
getOrganizationByProjectIdCached,
|
|
||||||
getProjectEventsCount,
|
getProjectEventsCount,
|
||||||
} from '@openpanel/db';
|
} from '@openpanel/db';
|
||||||
import { cacheable } from '@openpanel/redis';
|
import { cacheable } from '@openpanel/redis';
|
||||||
@@ -76,4 +75,6 @@ const updateEventsCount = cacheable(async function updateEventsCount(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}, 60 * 60);
|
}, 60 * 60);
|
||||||
|
|||||||
Reference in New Issue
Block a user