refactor(webhook): remove auth placeholder
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
import verifyWebhook from './verify-webhook';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
verifyWebhook,
|
|
||||||
};
|
|
@@ -1,7 +0,0 @@
|
|||||||
import { IGlobalVariable } from '@automatisch/types';
|
|
||||||
|
|
||||||
const verifyWebhook = async ($: IGlobalVariable) => {
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default verifyWebhook;
|
|
@@ -1,5 +1,4 @@
|
|||||||
import defineApp from '../../helpers/define-app';
|
import defineApp from '../../helpers/define-app';
|
||||||
import auth from './auth';
|
|
||||||
import triggers from './triggers';
|
import triggers from './triggers';
|
||||||
|
|
||||||
export default defineApp({
|
export default defineApp({
|
||||||
@@ -11,6 +10,5 @@ export default defineApp({
|
|||||||
baseUrl: '',
|
baseUrl: '',
|
||||||
apiBaseUrl: '',
|
apiBaseUrl: '',
|
||||||
primaryColor: '0059F7',
|
primaryColor: '0059F7',
|
||||||
auth,
|
|
||||||
triggers,
|
triggers,
|
||||||
});
|
});
|
||||||
|
@@ -27,8 +27,7 @@ export default async (request: IRequest, response: Response) => {
|
|||||||
return response.sendStatus(404);
|
return response.sendStatus(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (app.auth?.verifyWebhook) {
|
||||||
if (app.auth.verifyWebhook) {
|
|
||||||
const $ = await globalVariable({
|
const $ = await globalVariable({
|
||||||
flow,
|
flow,
|
||||||
connection: await triggerStep.$relatedQuery('connection'),
|
connection: await triggerStep.$relatedQuery('connection'),
|
||||||
|
Reference in New Issue
Block a user