This commit is contained in:
Ralfs 2021-04-10 01:27:58 +03:00
parent 07c080f249
commit 7ca173b6fa
2 changed files with 2 additions and 0 deletions

View File

@ -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"
},

View File

@ -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);