refactor(webhook): remove auth placeholder

This commit is contained in:
Ali BARIN
2022-12-08 11:57:06 +01:00
parent 51ccdf3577
commit d9f9056515
4 changed files with 1 additions and 16 deletions

View File

@@ -1,5 +0,0 @@
import verifyWebhook from './verify-webhook';
export default {
verifyWebhook,
};

View File

@@ -1,7 +0,0 @@
import { IGlobalVariable } from '@automatisch/types';
const verifyWebhook = async ($: IGlobalVariable) => {
return true;
};
export default verifyWebhook;

View File

@@ -1,5 +1,4 @@
import defineApp from '../../helpers/define-app';
import auth from './auth';
import triggers from './triggers';
export default defineApp({
@@ -11,6 +10,5 @@ export default defineApp({
baseUrl: '',
apiBaseUrl: '',
primaryColor: '0059F7',
auth,
triggers,
});

View File

@@ -27,8 +27,7 @@ export default async (request: IRequest, response: Response) => {
return response.sendStatus(404);
}
if (app.auth.verifyWebhook) {
if (app.auth?.verifyWebhook) {
const $ = await globalVariable({
flow,
connection: await triggerStep.$relatedQuery('connection'),