Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vercel #50

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 11 additions & 26 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.1",
"description": "",
"author": "Faouzi JEDIDI",
"private": true,
"license": "MIT",
"scripts": {
"build": "nest build",
Expand All @@ -20,33 +19,23 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/axios": "^2.0.0",
"@nestjs/cache-manager": "^2.1.1",
"@nestjs/common": "10.2.10",
"@nestjs/common": "^10.2.10",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "10.2.10",
"@nestjs/jwt": "^10.0.3",
"@nestjs/core": "^10.2.10",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "10.2.10",
"@nestjs/platform-socket.io": "10.2.10",
"@nestjs/schedule": "^3.0.1",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/platform-express": "^10.3.3",
"@nestjs/platform-socket.io": "^10.2.10",
"@nestjs/swagger": "^7.1.17",
"@nestjs/terminus": "^10.0.1",
"@nestjs/throttler": "^5.1.2",
"@nestjs/typeorm": "^10.0.1",
"@nestjs/websockets": "10.2.10",
"@sendgrid/mail": "^7.7.0",
"@nestjs/websockets": "^10.2.10",
"@types/cookie-parser": "^1.4.3",
"@types/express-session": "^1.17.7",
"@types/passport-jwt": "^3.0.10",
"bcrypt": "^5.1.1",
"cache-manager": "^4.0.0",
"ccxt": "^4.1.98",
"class-transformer": "^0.5.1",
"coingecko-api-v3": "^0.0.29",
"cookie-parser": "^1.4.6",
"decimal.js": "^10.4.3",
"dotenv": "^16.3.1",
"ethers": "^5.7.2",
"express": "^4.18.2",
Expand All @@ -55,33 +44,29 @@
"socket.io-client": "^4.7.4",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.17",
"uuid": "^9.0.1",
"winston": "^3.12.0"
"uuid": "^9.0.1"
},
"devDependencies": {
"@golevelup/ts-jest": "^0.4.0",
"@nestjs/cache-manager": "^2.2.1",
"@nestjs/cli": "^9.4.3",
"@nestjs/schematics": "^9.2.0",
"@nestjs/testing": "^9.4.3",
"@types/bcrypt": "^5.0.2",
"@nestjs/testing": "^10.3.3",
"@types/express": "^4.17.13",
"@types/jest": "29.5.1",
"@types/node": "18.16.12",
"@types/supertest": "^2.0.15",
"@types/zxcvbn": "4.4.1",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "29.5.0",
"jest": "^29.5.0",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "29.1.1",
"ts-jest": "^29.1.1",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "4.2.0",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.0.0"
},
"jest": {
Expand Down
2 changes: 1 addition & 1 deletion server/src/modules/trade/trade.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@

async cancelOrder(orderId: string, symbol: string): Promise<void> {
try {
const result = await this.exchange.cancelOrder(orderId, symbol);

Check failure on line 140 in server/src/modules/trade/trade.service.ts

View workflow job for this annotation

GitHub Actions / lint (18.x)

'result' is assigned a value but never used

Check failure on line 140 in server/src/modules/trade/trade.service.ts

View workflow job for this annotation

GitHub Actions / lint (18.x)

'result' is assigned a value but never used
this.logger.log(`Order cancelled: ${orderId}`, result);
// this.logger.log(`Order cancelled: ${orderId}`, result);
// update the transaction status in database
await this.tradeRepository.updateTradeStatus(orderId, 'cancelled');
} catch (error) {
Expand Down
6 changes: 4 additions & 2 deletions server/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"routes": [
{
"src": "/(.*)",
"dest": "dist/main.js"
"dest": "dist/main.js",
"methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
}
]
}
}

Loading
Loading