Skip to content
Open
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
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ EVOAI_ENABLED=false
# Redis Cache enabled
CACHE_REDIS_ENABLED=true
CACHE_REDIS_URI=redis://localhost:6379/6
# Local machine Redis settings (used when NODE_ENV is not PROD)
CACHE_REDIS_LOCAL_ENABLED=true
CACHE_REDIS_LOCAL_URI=redis://localhost:6379/6
# Production Redis settings (used when NODE_ENV=PROD)
CACHE_REDIS_PRODUCTION_ENABLED=true
CACHE_REDIS_PRODUCTION_URI=redis://your-production-redis:6379/6
CACHE_REDIS_TTL=604800
# Prefix serves to differentiate data from one installation to another that are using the same redis
CACHE_REDIS_PREFIX_KEY=evolution
Expand Down
4 changes: 4 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ DATABASE_DELETE_MESSAGE=false
# ===========================================
CACHE_REDIS_ENABLED=true
CACHE_REDIS_URI=redis://localhost:6379
CACHE_REDIS_LOCAL_ENABLED=true
CACHE_REDIS_LOCAL_URI=redis://localhost:6379
CACHE_REDIS_PRODUCTION_ENABLED=true
CACHE_REDIS_PRODUCTION_URI=redis://your-production-redis:6379
CACHE_REDIS_PREFIX_KEY=evolution-cache
CACHE_REDIS_TTL=604800
CACHE_REDIS_SAVE_INSTANCES=true
Expand Down
238 changes: 0 additions & 238 deletions grafana-dashboard.json.example

This file was deleted.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"start:prod": "node dist/main",
"dev:server": "tsx watch ./src/main.ts",
"test": "tsx watch ./test/all.test.ts",
"lint": "eslint --fix --ext .ts src",
"lint:check": "eslint --ext .ts src",
"commit": "cz",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --fix --ext .ts src",
"lint:check": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .ts src",
"commitlint": "commitlint --edit",
"db:generate": "node runWithProvider.js \"npx prisma generate --schema ./prisma/DATABASE_PROVIDER-schema.prisma\"",
"db:deploy": "node runWithProvider.js \"rm -rf ./prisma/migrations && cp -r ./prisma/DATABASE_PROVIDER-migrations ./prisma/migrations && npx prisma migrate deploy --schema ./prisma/DATABASE_PROVIDER-schema.prisma\"",
Expand Down Expand Up @@ -53,31 +52,34 @@
"homepage": "https://github.com/EvolutionAPI/evolution-api#readme",
"lint-staged": {
"src/**/*.{ts,js}": [
"eslint --fix"
"sh -c 'ESLINT_USE_FLAT_CONFIG=false eslint --fix'"
],
"src/**/*.ts": [
"sh -c 'tsc --noEmit'"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"@adiwajshing/keyed-db": "^0.2.4",
"@aws-sdk/client-sqs": "^3.891.0",
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@figuro/chatwoot-sdk": "^1.1.16",
"@figuro/chatwoot-sdk": "^1.1.17",
"@hapi/boom": "^10.0.1",
"@nestjs/swagger": "^11.2.6",
"@nx/eslint": "^22.6.3",
"@nx/eslint-plugin": "^22.6.3",
"@nx/jest": "^22.6.3",
"@nx/playwright": "^22.6.3",
"@nx/vite": "^22.6.3",
"@nx/web": "^22.6.3",
"@nx/webpack": "^22.6.3",
"@paralleldrive/cuid2": "^2.2.2",
"@prisma/client": "^6.16.2",
"@sentry/node": "^10.12.0",
"@types/uuid": "^10.0.0",
"amqplib": "^0.10.5",
"audio-decode": "^2.2.3",
"axios": "^1.7.9",
"baileys": "7.0.0-rc.9",
"baileys": "^6.7.21",
"class-validator": "^0.14.1",
"compression": "^1.7.5",
"cors": "^2.8.5",
Expand All @@ -87,10 +89,10 @@
"eventemitter2": "^6.4.9",
"express": "^4.21.2",
"express-async-errors": "^3.1.1",
"fetch-socks": "^1.3.2",
"fluent-ffmpeg": "^2.1.3",
"form-data": "^4.0.1",
"https-proxy-agent": "^7.0.6",
"fetch-socks": "^1.3.2",
"i18next": "^23.7.19",
"jimp": "^1.6.0",
"json-schema": "^0.4.0",
Expand Down Expand Up @@ -141,8 +143,6 @@
"@types/qrcode-terminal": "^0.12.2",
"@typescript-eslint/eslint-plugin": "^8.44.0",
"@typescript-eslint/parser": "^8.44.0",
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.31.0",
Expand Down
38 changes: 38 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "engine",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): The $schema path may be incorrect relative to the location of project.json.

Since this project.json is at the repo root and sourceRoot is apps/engine/src, the schema file should likely be referenced as node_modules/nx/schemas/project-schema.json (no ../ segments). The current ../../node_modules/... path would resolve above the repo root and likely break Nx/IDE schema validation. Please verify the actual schema location and update the path accordingly so tooling can validate this config.

"sourceRoot": "apps/engine/src",
"projectType": "application",
"prefix": "engine",
"targets": {
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "npm run dev:server",
"cwd": "apps/engine"
}
},
"build": {
"executor": "nx:run-commands",
"options": {
"command": "npm run build",
"cwd": "apps/engine"
}
},
"db:migrate": {
"executor": "nx:run-commands",
"options": {
"command": "npm run db:deploy",
"cwd": "apps/engine"
}
},
"db:seed": {
"executor": "nx:run-commands",
"options": {
"command": "npm run db:seed",
"cwd": "apps/engine"
}
}
},
"tags": ["type:app", "scope:engine"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ export class BusinessStartupService extends ChannelStartupService {
where: {
instanceId: this.instanceId,
key: {
path: ['id'],
path: '$.id',
equals: key.id,
},
},
Expand Down
Loading