summaryrefslogtreecommitdiffstats
path: root/src/tasks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks.ts')
-rw-r--r--src/tasks.ts16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/tasks.ts b/src/tasks.ts
index 388dde8..18b6fe8 100644
--- a/src/tasks.ts
+++ b/src/tasks.ts
@@ -1,17 +1,7 @@
-export interface InstagramTask {
- type: "download_instagram";
- url: string;
- replyId: string;
-}
+import { InstagramTask } from "./instagram_task";
-export interface SlackReplyTask {
- type: "slack_reply";
- replyId: string;
- message: string;
- filePath: string;
-}
-
-export type Task = InstagramTask | SlackReplyTask;
+// union of possible task types
+export type Task = InstagramTask;
const taskQueue: Task[] = [];