mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Forgot to push the main file :\
This commit is contained in:
parent
a0c4d2317e
commit
13c9b7ecc8
1 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,10 @@ async function getUUID(orgtype: string) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
if (cache[type]) {
|
if (cache[type]) {
|
||||||
console.log("Serving expired cache due to error");
|
console.log("Serving expired cache due to error");
|
||||||
return cache[type].data;
|
return {
|
||||||
|
...cache[type].data,
|
||||||
|
cache: true,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -125,6 +128,7 @@ export default defineEventHandler(async (event) => {
|
||||||
nuuid: fillll,
|
nuuid: fillll,
|
||||||
uuidData: returnData,
|
uuidData: returnData,
|
||||||
nuuiddata: cconaa,
|
nuuiddata: cconaa,
|
||||||
|
timestamp: new Date(),
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue