diff --git a/src/main.ts b/src/main.ts index 2b68faed9..f14a6a762 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,7 +15,6 @@ import { ElasticTraitsUpdaterModule } from './crons/elastic.updater/elastic-trai import { ElasticNftScamUpdaterModule } from './crons/elastic.updater/elastic-scam.updater.module'; import { ports } from './config'; import { LoggerService } from './utils/LoggerService'; -import { graphqlUploadExpress } from 'graphql-upload'; import { PubSubListenerModule } from './pubsub/pub.sub.listener.module'; import { ApiConfigModule } from './modules/common/api-config/api.config.module'; import { ApiConfigService } from './modules/common/api-config/api.config.service'; diff --git a/src/modules/assets/assets-mutations.resolver.ts b/src/modules/assets/assets-mutations.resolver.ts index a0e17499b..c736ce1db 100644 --- a/src/modules/assets/assets-mutations.resolver.ts +++ b/src/modules/assets/assets-mutations.resolver.ts @@ -2,7 +2,6 @@ import { Resolver, Args, Mutation } from '@nestjs/graphql'; import { BaseResolver } from '../common/base.resolver'; import { AssetsTransactionService } from '.'; import { Asset, CreateNftArgs, TransferNftArgs, HandleQuantityArgs, AddLikeArgs, RemoveLikeArgs } from './models'; -import { GraphQLUpload, FileUpload } from 'graphql-upload'; import { AssetsLikesService } from './assets-likes.service'; import { UseGuards } from '@nestjs/common'; import { ContentValidation } from './content.validation.service'; diff --git a/src/modules/assets/assets-transaction.service.ts b/src/modules/assets/assets-transaction.service.ts index 53a195a5d..f5f2d668a 100644 --- a/src/modules/assets/assets-transaction.service.ts +++ b/src/modules/assets/assets-transaction.service.ts @@ -12,7 +12,6 @@ import BigNumber from 'bignumber.js'; import { TransactionNode } from '../common/transaction'; import { UpdateQuantityRequest, CreateNftRequest, TransferNftRequest, CreateNftWithMultipleFilesRequest } from './models/requests'; import { generateCacheKeyFromParams } from 'src/utils/generate-cache-key'; -import { FileUpload } from 'graphql-upload'; import { MxStats } from 'src/common/services/mx-communication/models/mx-stats.model'; import { RedisCacheService } from '@multiversx/sdk-nestjs-cache'; import { Constants } from '@multiversx/sdk-nestjs-common'; @@ -143,7 +142,7 @@ export class AssetsTransactionService { return assetMetadata; } - private async uploadFileToPinata(fileUpload: FileUpload) { + private async uploadFileToPinata(fileUpload: any) { const file = await fileUpload; const fileData = await this.pinataService.uploadFile(file); await this.s3Service.upload(file, fileData.hash); diff --git a/src/modules/assets/models/requests/CreateNftRequest.ts b/src/modules/assets/models/requests/CreateNftRequest.ts index 2e6c99232..7a4a4663b 100644 --- a/src/modules/assets/models/requests/CreateNftRequest.ts +++ b/src/modules/assets/models/requests/CreateNftRequest.ts @@ -1,4 +1,3 @@ -import { FileUpload } from 'graphql-upload'; import { CreateNftArgs } from '../CreateNftArgs'; export class CreateNftRequest { @@ -7,7 +6,7 @@ export class CreateNftRequest { name: string; royalties: string = '0'; attributes: Attribute; - file: FileUpload; + file: any; constructor(init?: Partial) { Object.assign(this, init); @@ -39,7 +38,7 @@ export class CreateNftWithMultipleFilesRequest { name: string; royalties: string = '0'; attributes: Attribute; - files: FileUpload[]; + files: any[]; constructor(init?: Partial) { Object.assign(this, init);