Skip to content

Commit

Permalink
feat: use vxtwitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakiyo authored Jul 3, 2023
1 parent ed7517c commit b4259b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs/twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const job: Job = {
)
.then((v) => v.json())
.then((v) => (v as Record<string, any>).items as Record<string, string>[])
.then((v) => v.map((f) => f.url))
.then((v) => v.map((f) => f.url.replace('twitter.com', 'vxtwitter.com')))
.catch(log);

if (!res?.length) return;
Expand All @@ -32,6 +32,7 @@ export const job: Job = {
link,
});
}

if (!links.length) return;
await prisma.cache.update({
where: {
Expand Down

0 comments on commit b4259b6

Please sign in to comment.