Skip to content

Commit

Permalink
update: make sure mmrPath has no trailing slash
Browse files Browse the repository at this point in the history
by Jacob
  • Loading branch information
icezohu committed Jul 26, 2023
1 parent 180b0e8 commit ff1ec45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/indexer-coordinator/src/project/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { GraphqlQueryClient, IPFS_URLS, IPFSClient, NETWORK_CONFIGS } from '@subql/network-clients';
import { argv } from 'src/yargs';
import { Not, Repository } from 'typeorm';

import { Config } from '../configure/configure.module';
Expand Down Expand Up @@ -44,7 +45,6 @@ import {
ProjectInfo,
} from './project.model';
import { MmrStoreType, TemplateType } from './types';
import { argv } from 'src/yargs';

@Injectable()
export class ProjectService {
Expand Down Expand Up @@ -213,6 +213,8 @@ export class ProjectService {
const postgres = this.config.postgres;
const dockerNetwork = this.config.dockerNetwork;

const mmrPath = argv['mmrPath'].replace(/\/$/, '');

const item: TemplateType = {
deploymentID: project.id,
dbSchema: schemaName(project.id),
Expand All @@ -222,7 +224,7 @@ export class ProjectService {
mmrStoreType,
dockerNetwork,
ipfsUrl: IPFS_URL,
mmrPath: argv['mmrPath'],
mmrPath,
...baseConfig,
...advancedConfig,
};
Expand Down

0 comments on commit ff1ec45

Please sign in to comment.