diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-14 20:43:25 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-14 20:43:25 +0200 |
| commit | 0057931a0e009cf40c0b1bb651d60432347e0dc7 (patch) | |
| tree | aafc81e3ea15e5bc55b1497a694ce9335aae1c43 /src/instagram_task.ts | |
| parent | bc339b5b8a3357002909047409be0d7bc7474fe9 (diff) | |
Add user handle to response, small improvements
Diffstat (limited to 'src/instagram_task.ts')
| -rw-r--r-- | src/instagram_task.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/instagram_task.ts b/src/instagram_task.ts index 7ca0c77..09b82b5 100644 --- a/src/instagram_task.ts +++ b/src/instagram_task.ts @@ -5,7 +5,7 @@ import { wait } from "./utils"; export interface InstagramTask { type: "download_instagram"; url: string; - respondWithFile: (message: string, filePath: string) => Promise<void>; + respondWithFile: (filePath: string) => Promise<void>; } export const runDownloadInstagramTask = async (task: InstagramTask) => { @@ -122,7 +122,7 @@ export const runDownloadInstagramTask = async (task: InstagramTask) => { const downloadedFile = downloadedFiles[0]; - await task.respondWithFile("🗿🗿🗿", `./downloads/${downloadedFile}`); + await task.respondWithFile(`./downloads/${downloadedFile}`); } finally { await page.close(); await browser.close(); |
