Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Fixed incorrect url
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-andysign committed May 2, 2024
1 parent 0ec0797 commit a98f4bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/initialise_demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async function issueCertificate(
}

const issueEndpoint = `http://localhost:${energyProviderPort}/v1/certificate/${id}/issuance`
const carbonIntensityApiUrl = `https://api.carbonintensity.com/intensity/${new Date(production_start_time).toISOString()}/${new Date(production_end_time).toISOString()}`
const carbonIntensityApiUrl = `https://api.carbonintensity.org.uk/intensity/${new Date(production_start_time).toISOString()}/${new Date(production_end_time).toISOString()}`

const checkCarbonIntensityAPI = async (url) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/CertificateViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function CertificateViewer() {
if (resLocal?.state !== 'initiated') return

url = `${origin}/v1/certificate/${id}/issuance`
const carbonIntensityApiUrl = `https://api.carbonintensity.com/intensity/${new Date(start).toISOString()}/${new Date(end).toISOString()}`
const carbonIntensityApiUrl = `https://api.carbonintensity.org.uk/intensity/${new Date(start).toISOString()}/${new Date(end).toISOString()}`
const checkCarbonIntensityAPI = async (u) => {
try {
const result = await fetch(u)
Expand Down

0 comments on commit a98f4bf

Please sign in to comment.