From 6a4a08073f88ec0fe0e29fbf1347103d5420944b Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Wed, 18 Dec 2024 14:42:26 +0100 Subject: [PATCH] refactor(envited.ascs.digital): update file name Signed-off-by: Roy Scheeren --- apps/envited.ascs.digital/listener/index.ts | 2 +- .../modules/AddAssets/AddAssets.actions.ts | 2 +- listener.config.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/envited.ascs.digital/listener/index.ts b/apps/envited.ascs.digital/listener/index.ts index 599b8384..2ee339c6 100644 --- a/apps/envited.ascs.digital/listener/index.ts +++ b/apps/envited.ascs.digital/listener/index.ts @@ -2,6 +2,7 @@ import { RDSDataClient } from '@aws-sdk/client-rds-data' import { fromIni } from '@aws-sdk/credential-providers' import { TezosToolkit } from '@taquito/taquito' import { drizzle } from 'drizzle-orm/aws-data-api/pg' +import { PinataSDK } from 'pinata-web3' import { connectDb } from '../common/database' import * as schema from '../common/database/schema' @@ -9,7 +10,6 @@ import { downloadFile } from '../common/ipfs' import { log } from '../common/logger' import { listenToAssetContract } from './listener' import { getTokenByTokenId, insertToken } from './persistence' -import { PinataSDK } from 'pinata-web3' const Tezos = new TezosToolkit(process.env.NEXT_PUBLIC_WEB3_RPC_URL || 'https://ghostnet.ecadinfra.com') const db = async () => { diff --git a/apps/envited.ascs.digital/modules/AddAssets/AddAssets.actions.ts b/apps/envited.ascs.digital/modules/AddAssets/AddAssets.actions.ts index 3bc22eb0..a96f8b17 100644 --- a/apps/envited.ascs.digital/modules/AddAssets/AddAssets.actions.ts +++ b/apps/envited.ascs.digital/modules/AddAssets/AddAssets.actions.ts @@ -3,13 +3,13 @@ import { revalidatePath } from 'next/cache' import { isNil } from 'ramda' +import { createFilename } from '../../common/asset/validateAndCreateMetadata.utils' import { getServerSession } from '../../common/auth' import { getAssetUploadUrl } from '../../common/aws' import { ERRORS } from '../../common/constants' import { log } from '../../common/logger' import { insertAsset } from '../../common/serverActions' import { badRequestError, formatError, internalServerErrorError, unauthorizedError } from '../../common/utils' -import { createFilename } from '../../common/asset/validateAndCreateMetadata.utils' export async function addAssetsForm(formData: FormData) { const assets = formData.getAll('assets') as File[] diff --git a/listener.config.js b/listener.config.js index 83c28f7c..8b7dbc50 100644 --- a/listener.config.js +++ b/listener.config.js @@ -16,7 +16,8 @@ module.exports = { 'arn:aws:rds:eu-central-1:597778497612:cluster:staging-envitedascsdigital-envited-envited46e22b9b-l2rchfuookv5', PINATA_GATEWAY_KEY: 'yCNvt4_psrxde9cshtn7vPtK5HujxSUYaRyNT5aVIu1l5eH2S7pUxSEl7UVQhF-4', PINATA_GATEWAY: 'plum-secret-aardwolf-688.mypinata.cloud', - PINATA_JWT: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI3ODY1NTQyMC1kYzM0LTRjMTQtODczYi05NjE4MmQwNDA2ZDciLCJlbWFpbCI6InBpbmF0YUBlbnZpdGVkLm1hcmtldCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJwaW5fcG9saWN5Ijp7InJlZ2lvbnMiOlt7ImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxLCJpZCI6IkZSQTEifSx7ImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxLCJpZCI6Ik5ZQzEifV0sInZlcnNpb24iOjF9LCJtZmFfZW5hYmxlZCI6ZmFsc2UsInN0YXR1cyI6IkFDVElWRSJ9LCJhdXRoZW50aWNhdGlvblR5cGUiOiJzY29wZWRLZXkiLCJzY29wZWRLZXlLZXkiOiIxNGMxZTAyNzJlNzA3ODE0ZjcwNyIsInNjb3BlZEtleVNlY3JldCI6ImE2MzQ2N2VmMzc0ZmRjNzQ1Mzc2OTBmYjlkNjM3ODk1NjAyMzQ5Y2RmMDJkZGU2MTg2ZmFhOTllNGEwM2VhN2MiLCJleHAiOjE3NjQ2ODM4ODF9.Eu6nr-ZbpCYd4HuejxKCo4xG7qPoioJyBik6x3kJPm4' + PINATA_JWT: + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI3ODY1NTQyMC1kYzM0LTRjMTQtODczYi05NjE4MmQwNDA2ZDciLCJlbWFpbCI6InBpbmF0YUBlbnZpdGVkLm1hcmtldCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJwaW5fcG9saWN5Ijp7InJlZ2lvbnMiOlt7ImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxLCJpZCI6IkZSQTEifSx7ImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxLCJpZCI6Ik5ZQzEifV0sInZlcnNpb24iOjF9LCJtZmFfZW5hYmxlZCI6ZmFsc2UsInN0YXR1cyI6IkFDVElWRSJ9LCJhdXRoZW50aWNhdGlvblR5cGUiOiJzY29wZWRLZXkiLCJzY29wZWRLZXlLZXkiOiIxNGMxZTAyNzJlNzA3ODE0ZjcwNyIsInNjb3BlZEtleVNlY3JldCI6ImE2MzQ2N2VmMzc0ZmRjNzQ1Mzc2OTBmYjlkNjM3ODk1NjAyMzQ5Y2RmMDJkZGU2MTg2ZmFhOTllNGEwM2VhN2MiLCJleHAiOjE3NjQ2ODM4ODF9.Eu6nr-ZbpCYd4HuejxKCo4xG7qPoioJyBik6x3kJPm4', }, env_development: { ENV: 'development', @@ -29,7 +30,8 @@ module.exports = { POSTGRES_DATABASE_PASSWORD: '123456', PINATA_GATEWAY_KEY: 'yCNvt4_psrxde9cshtn7vPtK5HujxSUYaRyNT5aVIu1l5eH2S7pUxSEl7UVQhF-4', PINATA_GATEWAY: 'plum-secret-aardwolf-688.mypinata.cloud', - PINATA_JWT: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI3ODY1NTQyMC1kYzM0LTRjMTQtODczYi05NjE4MmQwNDA2ZDciLCJlbWFpbCI6InBpbm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