From 7ca173b6fafbd5ef34231446ee7b1a4c382d183d Mon Sep 17 00:00:00 2001 From: Ralfs Date: Sat, 10 Apr 2021 01:27:58 +0300 Subject: [PATCH] Heroku --- package.json | 1 + src/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index c0fd787..f538a27 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "build": "tsc", "postinstall": "tsc", + "deploy": "git add . && git commit -m Heroku && git push heroku master", "start": "node --max_old_space_size=2048 build/index.js", "start:dev": "ts-node src/index.ts" }, diff --git a/src/index.ts b/src/index.ts index 3ec8fd5..b831848 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,6 +38,7 @@ router.get('/', async(ctx, next) => { }) router.post('/alerts', async(ctx, next) => { + sendLogsToDiscord('Alert called', null); try { const alert = ctx.request.body; await validateMarginAccount(client, connection, dexProgramId, alert);