Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Sep 11, 2023
1 parent 85f3374 commit e7f253f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion src/modules/assets/assets-mutations.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 1 addition & 2 deletions src/modules/assets/assets-transaction.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 2 additions & 3 deletions src/modules/assets/models/requests/CreateNftRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FileUpload } from 'graphql-upload';
import { CreateNftArgs } from '../CreateNftArgs';

export class CreateNftRequest {
Expand All @@ -7,7 +6,7 @@ export class CreateNftRequest {
name: string;
royalties: string = '0';
attributes: Attribute;
file: FileUpload;
file: any;

constructor(init?: Partial<CreateNftRequest>) {
Object.assign(this, init);
Expand Down Expand Up @@ -39,7 +38,7 @@ export class CreateNftWithMultipleFilesRequest {
name: string;
royalties: string = '0';
attributes: Attribute;
files: FileUpload[];
files: any[];

constructor(init?: Partial<CreateNftWithMultipleFilesRequest>) {
Object.assign(this, init);
Expand Down

0 comments on commit e7f253f

Please sign in to comment.