From 0057931a0e009cf40c0b1bb651d60432347e0dc7 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 14 Mar 2024 20:43:25 +0200 Subject: Add user handle to response, small improvements --- src/instagram_task.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/instagram_task.ts') 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; + respondWithFile: (filePath: string) => Promise; } 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(); -- cgit v1.3