Skip to content

Commit

Permalink
Merge pull request #176 from klayrHQ/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Theezr authored Nov 21, 2024
2 parents 9bfeb63 + 4bd5b8f commit 03ae441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/blockchain/blockchain.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class BlockchainService implements OnModuleInit {
}

private async processNetwork(network: string, branch: string) {
if (network !== process.env.KLAYR_ENV) return;
const response = await this.githubService.getRepoContents(network, branch);

for (const item of response) {
Expand Down Expand Up @@ -115,16 +116,16 @@ export class BlockchainService implements OnModuleInit {
};

await this.prisma.$transaction(async (prisma) => {
await prisma.app.create({
data: appData,
});
await prisma.blockchainApp.create({
data: {
chainID,
chainName,
address: '',
},
});
await prisma.app.create({
data: appData,
});
});
}

Expand Down

0 comments on commit 03ae441

Please sign in to comment.