mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
This reverts commit c21c8b3369
.
This commit is contained in:
parent
92a2e863f3
commit
d3a1d3ffef
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
var alias = require('module-alias');
|
||||
|
||||
var path = require('path'); // tslint:disable-line:no-var-keyword
|
||||
alias(path.resolve(__dirname, "../"));
|
||||
|
||||
// Make sure that it also find the config folder when it
|
||||
// did get started from another folder that the root one.
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Command, flags } from '@oclif/command';
|
|||
const open = require('open');
|
||||
import * as Redis from 'ioredis';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import {
|
||||
ActiveExecutions,
|
||||
ActiveWorkflowRunner,
|
||||
|
@ -25,7 +25,7 @@ import {
|
|||
} from '../src';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
import {
|
||||
getLogger,
|
||||
} from '../src/Logger';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import {
|
|||
import { Command, flags } from '@oclif/command';
|
||||
import * as Redis from 'ioredis';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import {
|
||||
ActiveExecutions,
|
||||
ActiveWorkflowRunner,
|
||||
|
@ -20,7 +20,7 @@ import {
|
|||
} from '../src';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
import {
|
||||
getLogger,
|
||||
} from '../src/Logger';
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import {
|
|||
WorkflowExecuteAdditionalData,
|
||||
} from '../src';
|
||||
|
||||
import {
|
||||
import {
|
||||
getLogger,
|
||||
} from '../src/Logger';
|
||||
|
||||
|
@ -45,7 +45,7 @@ import {
|
|||
LoggerProxy,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import * as Bull from 'bull';
|
||||
import * as Queue from '../src/Queue';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import * as core from 'n8n-core';
|
|||
|
||||
dotenv.config();
|
||||
|
||||
export const config = convict({
|
||||
const config = convict({
|
||||
|
||||
database: {
|
||||
type: {
|
||||
|
@ -633,3 +633,4 @@ config.validate({
|
|||
allowed: 'strict',
|
||||
});
|
||||
|
||||
export = config;
|
||||
|
|
|
@ -105,7 +105,6 @@
|
|||
"jwks-rsa": "~1.12.1",
|
||||
"localtunnel": "^2.0.0",
|
||||
"lodash.get": "^4.4.2",
|
||||
"module-alias": "^2.2.2",
|
||||
"mysql2": "~2.2.0",
|
||||
"n8n-core": "~0.75.0",
|
||||
"n8n-editor-ui": "~0.95.0",
|
||||
|
@ -122,9 +121,6 @@
|
|||
"typeorm": "^0.2.30",
|
||||
"winston": "^3.3.3"
|
||||
},
|
||||
"_moduleAliases": {
|
||||
"@config": "./dist/config/index.js"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
|
||||
import { TlsOptions } from 'tls';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
|
||||
import { entities } from './databases/entities';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import {
|
|||
IExternalHooksFunctions,
|
||||
} from './';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
|
||||
|
||||
class ExternalHooksClass implements IExternalHooksClass {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import * as express from 'express';
|
||||
import { join as pathJoin } from 'path';
|
||||
import { readFile as fsReadFile } from 'fs/promises';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
LoggerProxy,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
|
||||
import {
|
||||
getLogger,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { config } from '@config';
|
||||
import config = require('../config');
|
||||
import * as winston from 'winston';
|
||||
|
||||
import {
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import * as Bull from 'bull';
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import { IBullJobData } from './Interfaces';
|
||||
|
||||
export class Queue {
|
||||
private jobQueue: Bull.Queue;
|
||||
|
||||
|
||||
constructor() {
|
||||
const prefix = config.get('queue.bull.prefix') as string;
|
||||
const redisOptions = config.get('queue.bull.redis') as object;
|
||||
// Disabling ready check is necessary as it allows worker to
|
||||
// Disabling ready check is necessary as it allows worker to
|
||||
// quickly reconnect to Redis if Redis crashes or is unreachable
|
||||
// for some time. With it enabled, worker might take minutes to realize
|
||||
// redis is back up and resume working.
|
||||
|
@ -16,25 +16,25 @@ export class Queue {
|
|||
// @ts-ignore
|
||||
this.jobQueue = new Bull('jobs', { prefix, redis: redisOptions, enableReadyCheck: false });
|
||||
}
|
||||
|
||||
|
||||
async add(jobData: IBullJobData, jobOptions: object): Promise<Bull.Job> {
|
||||
return await this.jobQueue.add(jobData,jobOptions);
|
||||
}
|
||||
|
||||
|
||||
async getJob(jobId: Bull.JobId): Promise<Bull.Job | null> {
|
||||
return await this.jobQueue.getJob(jobId);
|
||||
}
|
||||
|
||||
|
||||
async getJobs(jobTypes: Bull.JobStatus[]): Promise<Bull.Job[]> {
|
||||
return await this.jobQueue.getJobs(jobTypes);
|
||||
}
|
||||
|
||||
|
||||
getBullObjectInstance(): Bull.Queue {
|
||||
return this.jobQueue;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param job A Bull.Job instance
|
||||
* @returns boolean true if we were able to securely stop the job
|
||||
*/
|
||||
|
@ -62,6 +62,6 @@ export function getInstance(): Queue {
|
|||
if (activeQueueInstance === undefined) {
|
||||
activeQueueInstance = new Queue();
|
||||
}
|
||||
|
||||
|
||||
return activeQueueInstance;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ import {
|
|||
|
||||
import * as basicAuth from 'basic-auth';
|
||||
import * as compression from 'compression';
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import * as jwt from 'jsonwebtoken';
|
||||
import * as jwks from 'jwks-rsa';
|
||||
// @ts-ignore
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
} from './';
|
||||
|
||||
import * as compression from 'compression';
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import * as parseUrl from 'parseurl';
|
||||
|
||||
export function registerProductionWebhooks() {
|
||||
|
@ -111,7 +111,7 @@ export function registerProductionWebhooks() {
|
|||
}
|
||||
|
||||
class App {
|
||||
|
||||
|
||||
app: express.Application;
|
||||
activeWorkflowRunner: ActiveWorkflowRunner.ActiveWorkflowRunner;
|
||||
endpointWebhook: string;
|
||||
|
@ -129,12 +129,12 @@ class App {
|
|||
protocol: string;
|
||||
sslKey: string;
|
||||
sslCert: string;
|
||||
|
||||
|
||||
presetCredentialsLoaded: boolean;
|
||||
|
||||
|
||||
constructor() {
|
||||
this.app = express();
|
||||
|
||||
|
||||
this.endpointWebhook = config.get('endpoints.webhook') as string;
|
||||
this.saveDataErrorExecution = config.get('executions.saveDataOnError') as string;
|
||||
this.saveDataSuccessExecution = config.get('executions.saveDataOnSuccess') as string;
|
||||
|
@ -143,22 +143,22 @@ class App {
|
|||
this.maxExecutionTimeout = config.get('executions.maxTimeout') as number;
|
||||
this.timezone = config.get('generic.timezone') as string;
|
||||
this.restEndpoint = config.get('endpoints.rest') as string;
|
||||
|
||||
|
||||
this.activeWorkflowRunner = ActiveWorkflowRunner.getInstance();
|
||||
|
||||
|
||||
this.activeExecutionsInstance = ActiveExecutions.getInstance();
|
||||
|
||||
|
||||
this.protocol = config.get('protocol');
|
||||
this.sslKey = config.get('ssl_key');
|
||||
this.sslCert = config.get('ssl_cert');
|
||||
|
||||
|
||||
this.externalHooks = ExternalHooks();
|
||||
|
||||
|
||||
this.presetCredentialsLoaded = false;
|
||||
this.endpointPresetCredentials = config.get('credentials.overwrite.endpoint') as string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current epoch time
|
||||
*
|
||||
|
@ -168,15 +168,15 @@ class App {
|
|||
getCurrentDate(): Date {
|
||||
return new Date();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
async config(): Promise<void> {
|
||||
|
||||
|
||||
this.versions = await GenericHelpers.getVersions();
|
||||
|
||||
|
||||
// Compress the response data
|
||||
this.app.use(compression());
|
||||
|
||||
|
||||
// Make sure that each request has the "parsedUrl" parameter
|
||||
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
(req as ICustomRequest).parsedUrl = parseUrl(req);
|
||||
|
@ -184,7 +184,7 @@ class App {
|
|||
req.rawBody = Buffer.from('', 'base64');
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
// Support application/json type post data
|
||||
this.app.use(bodyParser.json({
|
||||
limit: '16mb', verify: (req, res, buf) => {
|
||||
|
@ -192,7 +192,7 @@ class App {
|
|||
req.rawBody = buf;
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
// Support application/xml type post data
|
||||
// @ts-ignore
|
||||
this.app.use(bodyParser.xml({
|
||||
|
@ -202,14 +202,14 @@ class App {
|
|||
explicitArray: false, // Only put properties in array if length > 1
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
this.app.use(bodyParser.text({
|
||||
limit: '16mb', verify: (req, res, buf) => {
|
||||
// @ts-ignore
|
||||
req.rawBody = buf;
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
//support application/x-www-form-urlencoded post data
|
||||
this.app.use(bodyParser.urlencoded({ extended: false,
|
||||
verify: (req, res, buf) => {
|
||||
|
@ -217,7 +217,7 @@ class App {
|
|||
req.rawBody = buf;
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
if (process.env['NODE_ENV'] !== 'production') {
|
||||
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
// Allow access also from frontend when developing
|
||||
|
@ -227,64 +227,64 @@ class App {
|
|||
next();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
if (Db.collections.Workflow === null) {
|
||||
const error = new ResponseHelper.ResponseError('Database is not ready!', undefined, 503);
|
||||
return ResponseHelper.sendErrorResponse(res, error);
|
||||
}
|
||||
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ----------------------------------------
|
||||
// Healthcheck
|
||||
// ----------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
// Does very basic health check
|
||||
this.app.get('/healthz', async (req: express.Request, res: express.Response) => {
|
||||
|
||||
|
||||
const connectionManager = getConnectionManager();
|
||||
|
||||
|
||||
if (connectionManager.connections.length === 0) {
|
||||
const error = new ResponseHelper.ResponseError('No Database connection found!', undefined, 503);
|
||||
return ResponseHelper.sendErrorResponse(res, error);
|
||||
}
|
||||
|
||||
|
||||
if (connectionManager.connections[0].isConnected === false) {
|
||||
// Connection is not active
|
||||
const error = new ResponseHelper.ResponseError('Database connection not active!', undefined, 503);
|
||||
return ResponseHelper.sendErrorResponse(res, error);
|
||||
}
|
||||
|
||||
|
||||
// Everything fine
|
||||
const responseData = {
|
||||
status: 'ok',
|
||||
};
|
||||
|
||||
|
||||
ResponseHelper.sendSuccessResponse(res, responseData, true, 200);
|
||||
});
|
||||
|
||||
|
||||
registerProductionWebhooks.apply(this);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export async function start(): Promise<void> {
|
||||
const PORT = config.get('port');
|
||||
const ADDRESS = config.get('listen_address');
|
||||
|
||||
|
||||
const app = new App();
|
||||
|
||||
|
||||
await app.config();
|
||||
|
||||
|
||||
let server;
|
||||
|
||||
|
||||
if (app.protocol === 'https' && app.sslKey && app.sslCert) {
|
||||
const https = require('https');
|
||||
const privateKey = readFileSync(app.sslKey, 'utf8');
|
||||
|
@ -295,12 +295,12 @@ export async function start(): Promise<void> {
|
|||
const http = require('http');
|
||||
server = http.createServer(app.app);
|
||||
}
|
||||
|
||||
|
||||
server.listen(PORT, ADDRESS, async () => {
|
||||
const versions = await GenericHelpers.getVersions();
|
||||
console.log(`n8n ready on ${ADDRESS}, port ${PORT}`);
|
||||
console.log(`Version: ${versions.cli}`);
|
||||
|
||||
|
||||
await app.externalHooks.run('n8n.ready', [app]);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ import {
|
|||
WorkflowHooks,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
|
||||
import { LessThanOrEqual } from 'typeorm';
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
LoggerProxy as Logger,
|
||||
Workflow,} from 'n8n-workflow';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import { WorkflowEntity } from './databases/entities/WorkflowEntity';
|
||||
import { validate } from 'class-validator';
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ import {
|
|||
WorkflowOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
import * as PCancelable from 'p-cancelable';
|
||||
import { join as pathJoin } from 'path';
|
||||
import { fork } from 'child_process';
|
||||
|
|
|
@ -38,7 +38,7 @@ import {
|
|||
getLogger,
|
||||
} from '../src/Logger';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../config';
|
||||
|
||||
export class WorkflowRunnerProcess {
|
||||
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class InitialMigration1588157391238 implements MigrationInterface {
|
||||
name = 'InitialMigration1588157391238';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {
|
|||
QueryRunner,
|
||||
} from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class WebhookModel1592447867632 implements MigrationInterface {
|
||||
name = 'WebhookModel1592447867632';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateIndexStoppedAt1594902918301 implements MigrationInterface {
|
||||
name = 'CreateIndexStoppedAt1594902918301';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class MakeStoppedAtNullable1607431743767 implements MigrationInterface {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class AddWebhookId1611149998770 implements MigrationInterface {
|
||||
name = 'AddWebhookId1611149998770';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class ChangeDataSize1615306975123 implements MigrationInterface {
|
||||
name = 'ChangeDataSize1615306975123';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateTagEntity1617268711084 implements MigrationInterface {
|
||||
name = 'CreateTagEntity1617268711084';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class ChangeCredentialDataSize1620729500000 implements MigrationInterface {
|
||||
name = 'ChangeCredentialDataSize1620729500000';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import config = require("../../../../config");
|
||||
|
||||
export class UniqueWorkflowNames1620826335440 implements MigrationInterface {
|
||||
name = 'UniqueWorkflowNames1620826335440';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
import { config } from '@config';
|
||||
import config = require('../../../../config');
|
||||
|
||||
export class CertifyCorrectCollation1623936588000 implements MigrationInterface {
|
||||
name = 'CertifyCorrectCollation1623936588000';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class InitialMigration1587669153312 implements MigrationInterface {
|
||||
name = 'InitialMigration1587669153312';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {
|
|||
QueryRunner,
|
||||
} from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class WebhookModel1589476000887 implements MigrationInterface {
|
||||
name = 'WebhookModel1589476000887';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateIndexStoppedAt1594828256133 implements MigrationInterface {
|
||||
name = 'CreateIndexStoppedAt1594828256133';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class MakeStoppedAtNullable1607431743768 implements MigrationInterface {
|
||||
name = 'MakeStoppedAtNullable1607431743768';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class AddWebhookId1611144599516 implements MigrationInterface {
|
||||
name = 'AddWebhookId1611144599516';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateTagEntity1617270242566 implements MigrationInterface {
|
||||
name = 'CreateTagEntity1617270242566';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import config = require("../../../../config");
|
||||
|
||||
export class UniqueWorkflowNames1620824779533 implements MigrationInterface {
|
||||
name = 'UniqueWorkflowNames1620824779533';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {
|
|||
QueryRunner,
|
||||
} from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class InitialMigration1588102412422 implements MigrationInterface {
|
||||
name = 'InitialMigration1588102412422';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {
|
|||
QueryRunner,
|
||||
} from 'typeorm';
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class WebhookModel1592445003908 implements MigrationInterface {
|
||||
name = 'WebhookModel1592445003908';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateIndexStoppedAt1594825041918 implements MigrationInterface {
|
||||
name = 'CreateIndexStoppedAt1594825041918';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class MakeStoppedAtNullable1607431743769 implements MigrationInterface {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class AddWebhookId1611071044839 implements MigrationInterface {
|
||||
name = 'AddWebhookId1611071044839';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import * as config from '../../../../config';
|
||||
|
||||
export class CreateTagEntity1617213344594 implements MigrationInterface {
|
||||
name = 'CreateTagEntity1617213344594';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
import { config } from '@config';
|
||||
import config = require("../../../../config");
|
||||
|
||||
export class UniqueWorkflowNames1620821879465 implements MigrationInterface {
|
||||
name = 'UniqueWorkflowNames1620821879465';
|
||||
|
|
|
@ -19,13 +19,7 @@
|
|||
"target": "es2017",
|
||||
"sourceMap": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@config": [
|
||||
"config/index"
|
||||
]
|
||||
}
|
||||
"experimentalDecorators": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.d.ts",
|
||||
|
|
Loading…
Reference in a new issue