hallo
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
ffae1a02e9
commit
b961ec8268
@ -15,16 +15,20 @@ const Posts: CollectionConfig = {
|
||||
afterChange: [
|
||||
async () => {
|
||||
console.log("HALLO");
|
||||
await fetch("https://api.github.com/repos/mooxl/astroad/dispatches", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/vnd.github.everest-preview+json",
|
||||
Authorization: "token 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",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
event_type: "payload_update",
|
||||
}),
|
||||
});
|
||||
try {
|
||||
await fetch("https://api.github.com/repos/mooxl/astroad/dispatches", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/vnd.github.everest-preview+json",
|
||||
Authorization: "token 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",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
event_type: "payload_update",
|
||||
}),
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user