diff options
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 4edfc2f..3f0c7ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import { App } from "@tinyhttp/app"; import { logger } from "@tinyhttp/logger"; import config from "./config"; +import { broadcast } from "./sheets"; import { bot } from "./tg"; const app = new App({ @@ -20,7 +21,8 @@ app .get("/", async (_, res) => { res.send({ service: "hommabot2 API" }); }) - .post("/scheduler/trigger", (_req, res) => { + .post("/scheduler/trigger", async (_req, res) => { + await broadcast(); res.send({ scheduler: "trigger" }); }); |
