fix: mscz file ref
This commit is contained in:
parent
7cb8cd227e
commit
0b7c423d8e
2 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ export const fetchMscz = async (): Promise<ArrayBuffer> => {
|
|||
const url = scoreinfo.msczCidUrl
|
||||
msczBufferP = (async (): Promise<ArrayBuffer> => {
|
||||
const r0 = await fetch(url)
|
||||
const { Cid: { '/': cid } } = await r0.json()
|
||||
const r = await fetch(`https://ipfs.infura.io/ipfs/${cid as string}`)
|
||||
const { Key } = await r0.json()
|
||||
const r = await fetch(`https://ipfs.infura.io/ipfs/${Key as string}`)
|
||||
const data = await r.arrayBuffer()
|
||||
return data
|
||||
})()
|
||||
|
|
|
@ -78,7 +78,7 @@ export const scoreinfo = {
|
|||
},
|
||||
|
||||
get msczCidUrl (this: typeof scoreinfo): string {
|
||||
return `https://ipfs.infura.io:5001/api/v0/dag/resolve?arg=${this.msczIpfsRef}`
|
||||
return `https://ipfs.infura.io:5001/api/v0/block/stat?arg=${this.msczIpfsRef}`
|
||||
},
|
||||
|
||||
get sheetImgType (): 'svg' | 'png' {
|
||||
|
|
Loading…
Reference in a new issue