mirror of
https://github.com/SkyfallWasTaken/arcade-monitor.git
synced 2025-05-23 20:13:04 +00:00
Push to Slack Webhook
This commit is contained in:
parent
eb251ae927
commit
4c09b8e3cd
3 changed files with 6 additions and 4 deletions
|
@ -64,11 +64,11 @@ async fn run_scrape(env: Env) -> Result<String> {
|
|||
let request = Request::new_with_init(
|
||||
&webhook_url,
|
||||
RequestInit::new()
|
||||
.with_body(json!({
|
||||
"text": message,
|
||||
}))
|
||||
.with_body(Some(serde_wasm_bindgen::to_value(
|
||||
&json!({ "text": message }),
|
||||
)?))
|
||||
.with_method(Method::Post),
|
||||
);
|
||||
)?;
|
||||
|
||||
Fetch::Request(request).send().await?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue