api/bluesky: remove redundant await & async

This commit is contained in:
wukko 2024-09-09 19:32:17 +06:00
parent 5210d62490
commit 2dbcdb18f9
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -30,7 +30,7 @@ const extractVideo = async ({ getPost, filename }) => {
}
}
const extractImages = async ({ getPost, filename, alwaysProxy }) => {
const extractImages = ({ getPost, filename, alwaysProxy }) => {
const images = getPost?.thread?.post?.embed?.images;
if (!images || images.length === 0) {
@ -83,10 +83,10 @@ export default async function ({ user, post, alwaysProxy }) {
const filename = `bluesky_${user}_${post}`;
if (embedType === "app.bsky.embed.video#view") {
return await extractVideo({ getPost, filename });
return extractVideo({ getPost, filename });
}
if (embedType === "app.bsky.embed.images#view") {
return await extractImages({ getPost, filename, alwaysProxy });
return extractImages({ getPost, filename, alwaysProxy });
}
return { error: "fetch.empty" };