Skip to content

Commit

Permalink
fix: log save in infura
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jul 19, 2023
1 parent 9355e22 commit 2aeec50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ipfs/ipfs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ export class IPFSService implements OnModuleDestroy {
this.didStoreInfura.save(credential),
]);
if (clusterCID.status === 'fulfilled') {
return clusterCID.value;
} else if (infuraCID.status === 'fulfilled') {
this.logger.warn(
`Error saving ${credential} in cluster. Saving in Infura`
);
return clusterCID.value;
} else if (infuraCID.status === 'fulfilled') {
return infuraCID.value;
} else {
throw new Error(
Expand Down

0 comments on commit 2aeec50

Please sign in to comment.