Skip to content

Commit

Permalink
Merge pull request #789 from oceanprotocol/issue-788-missing-ddo-check
Browse files Browse the repository at this point in the history
add missing check for ddo DB on republish ddos
  • Loading branch information
paulo-ocean authored Dec 17, 2024
2 parents e42ada6 + b7efa34 commit cb3bcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/P2P/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ export class OceanP2P extends EventEmitter {
// related: https://github.com/libp2p/go-libp2p-kad-dht/issues/323
async republishStoredDDOS() {
try {
if (!this.db) {
if (!this.db || !this.db.ddo) {
P2P_LOGGER.logMessage(
`republishStoredDDOS() attempt aborted because there is no database!`,
true
Expand Down

0 comments on commit cb3bcb1

Please sign in to comment.