Skip to content

Commit

Permalink
Fix request crawl from BGS Admin Dash
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Sep 20, 2023
1 parent 664c6ea commit 5ae3a2b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ts/bgs-dash/src/components/Dash/Dash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,15 @@ const Dash: FC<{}> = () => {
};

const requestCrawlHost = (host: string) => {
fetch(
`${BGS_HOST}/xrpc/com.atproto.sync.requestCrawl?hostname=${host}`
).then((res) => {
fetch(`${BGS_HOST}/xrpc/com.atproto.sync.requestCrawl`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
hostname: host,
}),
}).then((res) => {
if (res.status !== 200) {
setAlertWithTimeout(
"failure",
Expand Down

0 comments on commit 5ae3a2b

Please sign in to comment.