From 9e94b582d85eca6ebf628738a1d9c540fbd972eb Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Wed, 7 Jun 2023 12:21:03 +0200 Subject: [PATCH] Fix github API endpoint in Posts.ts --- payload/src/collections/Posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payload/src/collections/Posts.ts b/payload/src/collections/Posts.ts index c5ae35c..65a7110 100644 --- a/payload/src/collections/Posts.ts +++ b/payload/src/collections/Posts.ts @@ -18,7 +18,7 @@ const Posts: CollectionConfig = { try { console.log( await fetch( - "https://api.github.com/repos/mooxl/astroad/dispatches", + `https://api.github.com/repos/mooxl/${process.env.name}/dispatches`, { method: "POST", headers: {