@ -15,6 +15,7 @@ const Posts: CollectionConfig = {
|
|||||||
afterChange: [
|
afterChange: [
|
||||||
async () => {
|
async () => {
|
||||||
console.log("HALLO");
|
console.log("HALLO");
|
||||||
|
try {
|
||||||
await fetch("https://api.github.com/repos/mooxl/astroad/dispatches", {
|
await fetch("https://api.github.com/repos/mooxl/astroad/dispatches", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
@ -25,6 +26,9 @@ const Posts: CollectionConfig = {
|
|||||||
event_type: "payload_update",
|
event_type: "payload_update",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user