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

@@ -20,10 +20,10 @@
import {format} from "date-fns";
async function getCacheKey(string, start, end) {
function getCacheKey(string, start, end) {
const cacheKey = format(start, 'y-MM-dd') + '_' + format(end, 'y-MM-dd') + '_' + string;
console.log('getCacheKey: ' + cacheKey);
return cacheKey;
return String(cacheKey);
}
export {getCacheKey};