Skip to content

Commit

Permalink
check that fn is fn before functioning
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Sep 13, 2024
1 parent db4e215 commit 48fbe59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/nostrawl",
"version": "0.0.3",
"version": "0.0.4",
"description": "A nostr library for continously retrieving events from nostr relays based on a set of filters.",
"main": "src/index.js",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/classes/Trawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class NTTrawler {
path: this.options.cache.path,
compression: true
});
this?.options?.after_cacheOpen(this.cache)
//console.log('cache opened')
if(this?.options && this.options instanceof Function)
this?.options?.after_cacheOpen(this.cache)
}

async trawl(chunk, $job){
Expand Down

0 comments on commit 48fbe59

Please sign in to comment.