mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
try-catch trending tags cron
This commit is contained in:
parent
5ebde99320
commit
7949c95f77
1 changed files with 29 additions and 25 deletions
|
|
@ -72,6 +72,7 @@ export async function updateTrendingTags(
|
|||
|
||||
const tagNames = aliases ? [tagName, ...aliases] : [tagName];
|
||||
|
||||
try {
|
||||
const trends = await getTrendingTagValues(kysely, tagNames, {
|
||||
kinds,
|
||||
since: yesterday,
|
||||
|
|
@ -99,6 +100,9 @@ export async function updateTrendingTags(
|
|||
|
||||
await handleEvent(label, signal);
|
||||
console.info(`Trending ${l} updated.`);
|
||||
} catch (e) {
|
||||
console.error(`Error updating trending ${l}: ${e.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
/** Update trending pubkeys. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue