Skip to content

Commit

Permalink
chore: more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Apr 17, 2024
1 parent 4f6a4f4 commit a9e3729
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/utils/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export async function getContext(event, params) {
principal: config.W3_NFTSTORAGE_PRINCIPAL,
proof: config.W3_NFTSTORAGE_PROOF,
})
console.log('CONFIGGED SPACE', config.W3_NFTSTORAGE_SPACE)
// @ts-expect-error todo add DID check
w3upWIP.setCurrentSpace(config.W3_NFTSTORAGE_SPACE)
w3up = w3upWIP
Expand Down
4 changes: 4 additions & 0 deletions packages/api/src/utils/w3up.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ export async function getW3upDeals(client, contentClaimsClient, contentCid) {
// get the upload
let upload
try {
console.log(
'getting upload from current space',
client.currentSpace()?.did
)
upload = await client.capability.upload.get(link)
} catch (/** @type {any} */ e) {
console.error('error getting upload', e, e?.cause)
Expand Down

0 comments on commit a9e3729

Please sign in to comment.