refactor: Introduce IActionOutput and ITriggerOutput types

This commit is contained in:
Faruk AYDIN
2022-10-12 21:10:44 +02:00
committed by Ali BARIN
parent 6895378d33
commit d9192f6e6b
22 changed files with 327 additions and 279 deletions

View File

@@ -25,7 +25,7 @@ const getData = async (_parent: unknown, params: Params, context: Context) => {
if (!connection || !step.appKey) return null;
const app = await App.findOneByKey(step.appKey);
const $ = await globalVariable(connection, app, step.flow, step);
const $ = await globalVariable({ connection, app, flow: step.flow, step });
const command = app.data.find((data: IData) => data.key === params.key);

View File

@@ -20,10 +20,9 @@ const testConnection = async (
.throwIfNotFound();
const app = await App.findOneByKey(connection.key, false);
const $ = await globalVariable(connection, app);
const $ = await globalVariable({ connection, app });
const isStillVerified =
await app.auth.isStillVerified($);
const isStillVerified = await app.auth.isStillVerified($);
connection = await connection.$query().patchAndFetch({
formattedData: connection.formattedData,