refactor: Introduce IActionOutput and ITriggerOutput types
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user