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

Add packages #58

Merged
merged 2 commits into from
Apr 2, 2024
Merged
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
2 changes: 2 additions & 0 deletions docker/images/n8n/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!"
ENV N8N_VERSION=${N8N_VERSION}
ENV NODE_ENV=production
ENV N8N_RELEASE_TYPE=stable
ENV NODE_FUNCTION_ALLOW_EXTERNAL=*
ENV NODE_FUNCTION_ALLOW_BUILTIN=*
RUN set -eux; \
npm install -g --omit=dev n8n@${N8N_VERSION} --ignore-scripts && \
npm rebuild --prefix=/usr/local/lib/node_modules/n8n sqlite3 && \
Expand Down
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,31 @@
"test:e2e:all": "scripts/run-e2e.js all"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.19.1",
"@aws-sdk/client-s3": "^3.363.0",
"lodash": "^4.17.21",
"openai": "^4.32.1",
"sharp": "^0.33.3",
"api": "5.0.7",
"axios": "^1.6.8",
"redis": "^4.6.3",
"bullmq": "^5.5.0",
"zip-to-tz": "^1.1.0",
"dotenv": "^16.4.5",
"nanoid": "^5.0.6",
"uid": "^2.0.2",
"body-parser": "^1.20.2",
"chargebee": "^2.34.0",
"mixpanel": "^0.18.0",
"jwt-decode": "^4.0.0",
"redis-url-parse": "^2.0.0",
"twilio": "^5.0.2",
"firebase-admin": "^12.0.0",
"firebase": "^10.10.0",
"activecampaign": "^1.2.5",
"crypto-js": "4.2.0",
"authorizenet": "1.0.8",
"form-data": "^4.0.0",
"moment": "~2.29.2",
"moment-timezone": "^0.5.28",
"n8n": "workspace:*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class WorkflowStatisticsRepository extends Repository<WorkflowStatistics>
workflowId: string,
): Promise<StatisticsUpsertResult> {
const { tableName } = this.metadata;
const schemaPrefix = config.getEnv('database.postgresdb.schema');
try {
if (this.dbType === 'sqlite') {
await this.query(
Expand All @@ -74,7 +75,7 @@ export class WorkflowStatisticsRepository extends Repository<WorkflowStatistics>
return counter?.count === 1 ? 'insert' : 'failed';
} else if (this.dbType === 'postgresdb') {
const queryResult = (await this.query(
`INSERT INTO "${tableName}" ("count", "name", "workflowId", "latestEvent")
`INSERT INTO "${schemaPrefix}"."${tableName}" ("count", "name", "workflowId", "latestEvent")
VALUES (1, '${eventName}', '${workflowId}', CURRENT_TIMESTAMP)
ON CONFLICT ("name", "workflowId")
DO UPDATE SET "count" = "${tableName}"."count" + 1, "latestEvent" = CURRENT_TIMESTAMP
Expand Down
Loading
Loading