refactor: Pass connection, flow and step as params to apps

This commit is contained in:
Faruk AYDIN
2022-08-21 20:25:04 +03:00
parent cd6c5216ff
commit 44e3de8534
18 changed files with 60 additions and 85 deletions

View File

@@ -4,6 +4,7 @@ import { AES, enc } from 'crypto-js';
import Base from './base';
import User from './user';
import Step from './step';
import App from './app';
import appConfig from '../config/app';
import { IJSONObject } from '@automatisch/types';
import Telemetry from '../helpers/telemetry';
@@ -55,6 +56,10 @@ class Connection extends Base {
},
});
get appData() {
return App.findOneByKey(this.key);
}
encryptData(): void {
if (!this.eligibleForEncryption()) return;