From ec53b6432804d6896359feba6f30f55e866338c5 Mon Sep 17 00:00:00 2001 From: Julien Genestoux Date: Tue, 23 Apr 2024 20:12:51 -0400 Subject: [PATCH] fix(locksmith): not showing even logo on images because format unknown --- locksmith/.op.env.production | 1 - locksmith/.op.env.staging | 1 - locksmith/src/operations/stripeOperations.ts | 2 +- locksmith/src/utils/ticket.tsx | 11 +++++----- packages/ui/lib/components/Ticket/Ticket.tsx | 22 +++++++++++--------- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/locksmith/.op.env.production b/locksmith/.op.env.production index 679731c91c8..fdfbb7e54a9 100644 --- a/locksmith/.op.env.production +++ b/locksmith/.op.env.production @@ -7,7 +7,6 @@ STORAGE_ACCESS_KEY_ID=op://secrets/cloudflare/storage-access-key-id-prod STORAGE_SECRET_ACCESS_KEY=op://secrets/cloudflare/storage-secret-access-key-prod STORAGE_PUBLIC_HOST=op://secrets/cloudflare/storage-public-host-prod LOGTAIL=op://secrets/logtail/logtail-prod -WEDLOCKS=op://secrets/wedlocks/private-key PURCHASER_CREDENTIALS=op://secrets/purchaser/credentials-prod ON_HEROKU=true GITCOIN_API_KEY=op://secrets/gitcoin/api-key diff --git a/locksmith/.op.env.staging b/locksmith/.op.env.staging index 5e971c6ad3c..62174f15984 100644 --- a/locksmith/.op.env.staging +++ b/locksmith/.op.env.staging @@ -8,7 +8,6 @@ STORAGE_ACCESS_KEY_ID=op://secrets/cloudflare/storage-access-key-id-staging STORAGE_SECRET_ACCESS_KEY=op://secrets/cloudflare/storage-secret-access-key-staging STORAGE_PUBLIC_HOST=op://secrets/cloudflare/storage-public-host-staging LOGTAIL=op://secrets/logtail/logtail-staging -WEDLOCKS=op://secrets/wedlocks/private-key PURCHASER_CREDENTIALS=op://secrets/purchaser/credentials-staging ON_HEROKU=true GITCOIN_API_KEY=op://secrets/gitcoin/api-key diff --git a/locksmith/src/operations/stripeOperations.ts b/locksmith/src/operations/stripeOperations.ts index c02f6599c33..0344da5bb2f 100644 --- a/locksmith/src/operations/stripeOperations.ts +++ b/locksmith/src/operations/stripeOperations.ts @@ -285,7 +285,7 @@ export const stripeConnection = async ( try { account = await stripe.accounts.retrieve(stripeAccount) } catch (error) { - console.error(error) + logger.error(error) } return account } diff --git a/locksmith/src/utils/ticket.tsx b/locksmith/src/utils/ticket.tsx index 2f298e80ba4..390d0f87996 100644 --- a/locksmith/src/utils/ticket.tsx +++ b/locksmith/src/utils/ticket.tsx @@ -57,10 +57,11 @@ export const createTicket = async ({ ) const email = metadata?.userMetadata?.protected?.email - const imageURL: string = - metadata?.image || - `${config.services.locksmith}/lock/${lockAddress}/icon?id=${tokenId}` - const iconURL = await imageUrlToBase64(imageURL, lockAddress) + // Disabled because if the image is too big, this breaks satori (it broke for Farcon) + // const imageURL: string = + // // metadata?.image || + // `${config.services.locksmith}/lock/${lockAddress}/icon?id=${tokenId}` + // const iconURL = await imageUrlToBase64(imageURL, lockAddress) const ticket = await satori(
- {title} + {iconURL && ( + {title} + )}