Skip to content

Commit

Permalink
Update update_build script (#86)
Browse files Browse the repository at this point in the history
* Update update_build script

* Remove name
  • Loading branch information
raymondjacobson authored and michellebrier committed Oct 9, 2023
1 parent 2ecea3f commit 87b41b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/protocol-dashboard/scripts/updateBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const endpoint = config[env].gaEndpoint
const CONTENT_NODE_PEER_TIMEOUT = 1000 /* ms */ * 30 /* sec */

const updateContentNodePeers = async () => {
const contentNodesRes = await fetch(`${endpoint}/protocol_dashboard/content_nodes`)
const contentNodesRes = await fetch(`${endpoint}/ipfs/content_nodes`)
const contentNodes = await contentNodesRes.json()
const ipfsRes = await fetch(`${endpoint}/protocol_dashboard/ipfs`)
const ipfsRes = await fetch(`${endpoint}/ipfs/ipfs`)
const ipfsId = await ipfsRes.json()
const addr = ipfsId.addresses[0]
const connections = {}
Expand Down Expand Up @@ -74,7 +74,7 @@ const updateContentNodePeers = async () => {
}

const updateGABuild = async () => {
const res = await fetch(`${endpoint}/protocol_dashboard/update_build`)
const res = await fetch(`${endpoint}/ipfs/update_build?site=protocolDashboard`)
const response = await res.json()
if (!response.success) {
console.error('unable to update GA build')
Expand All @@ -84,7 +84,7 @@ const updateGABuild = async () => {
}

const pinGABuild = async () => {
const res = await fetch(`${endpoint}/protocol_dashboard/pin_build`)
const res = await fetch(`${endpoint}/ipfs/pin_build?site=protocolDashboard`)
if (!res.ok) {
console.error('unable to pin GA build')
process.exit(1)
Expand Down

0 comments on commit 87b41b4

Please sign in to comment.