fix: Type problems regarding global variable
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Context from '../../types/express/context';
|
||||
import axios from 'axios';
|
||||
import prepareGlobalVariableForConnection from '../../helpers/global-variable/connection';
|
||||
import globalVariable from '../../helpers/global-variable';
|
||||
import App from '../../models/app';
|
||||
|
||||
type Params = {
|
||||
@@ -29,7 +29,7 @@ const createAuthData = async (
|
||||
.default;
|
||||
const app = App.findOneByKey(connection.key);
|
||||
|
||||
const $ = prepareGlobalVariableForConnection(connection, app);
|
||||
const $ = globalVariable(connection, app);
|
||||
await authInstance.createAuthData($);
|
||||
|
||||
try {
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import { IJSONObject } from '@automatisch/types';
|
||||
import Step from '../../models/step';
|
||||
import Context from '../../types/express/context';
|
||||
|
||||
@@ -6,7 +7,7 @@ type Params = {
|
||||
id: string;
|
||||
key: string;
|
||||
appKey: string;
|
||||
parameters: Record<string, unknown>;
|
||||
parameters: IJSONObject;
|
||||
flow: {
|
||||
id: string;
|
||||
};
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import Context from '../../types/express/context';
|
||||
import App from '../../models/app';
|
||||
import prepareGlobalVariableForConnection from '../../helpers/global-variable/connection';
|
||||
import globalVariable from '../../helpers/global-variable';
|
||||
|
||||
type Params = {
|
||||
input: {
|
||||
@@ -24,7 +24,7 @@ const verifyConnection = async (
|
||||
const authInstance = (await import(`../../apps/${connection.key}2/auth`))
|
||||
.default;
|
||||
|
||||
const $ = prepareGlobalVariableForConnection(connection, app);
|
||||
const $ = globalVariable(connection, app);
|
||||
await authInstance.verifyCredentials($);
|
||||
|
||||
connection = await connection.$query().patchAndFetch({
|
||||
|
Reference in New Issue
Block a user