diff --git a/backend/src/server/createServer.ts b/backend/src/server/createServer.ts index b0524a585..1f0048677 100644 --- a/backend/src/server/createServer.ts +++ b/backend/src/server/createServer.ts @@ -73,7 +73,7 @@ const createServer = async (context: any = serverContext): Promise => { }) // Elopage Webhook - app.post('/hook/elopage/' + CONFIG.WEBHOOK_ELOPAGE_SECRET + '/', elopageWebhook) + app.post('/hook/elopage/' + CONFIG.WEBHOOK_ELOPAGE_SECRET, elopageWebhook) // Github Webhook if (CONFIG.WEBHOOK_GITHUB) { app.post( diff --git a/backend/src/webhook/elopage.ts b/backend/src/webhook/elopage.ts index 178523cd0..1be6c730d 100644 --- a/backend/src/webhook/elopage.ts +++ b/backend/src/webhook/elopage.ts @@ -28,13 +28,14 @@ */ import { LoginElopageBuys } from '@entity/LoginElopageBuys' -import { LoginUser } from '@entity/LoginUser' import { getCustomRepository } from 'typeorm' import { UserResolver } from '../graphql/resolver/UserResolver' import { LoginElopageBuysRepository } from '../typeorm/repository/LoginElopageBuys' import { LoginUserRepository } from '../typeorm/repository/LoginUser' export const elopageWebhook = async (req: any, res: any): Promise => { + // eslint-disable-next-line no-console + console.log('Elopage Hook received') res.status(200).end() // Responding is important const loginElopgaeBuyRepository = await getCustomRepository(LoginElopageBuysRepository) const loginElopgaeBuy = new LoginElopageBuys()