Skip to content

Commit

Permalink
fix: resource location
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jul 12, 2023
1 parent d14e3d2 commit d34584f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CLI = {

await Cli.parse( CLI );

externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn", import.meta.url );
externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn" );

const res = await externalResources.update( {
"remote": true,
Expand Down
2 changes: 1 addition & 1 deletion lib/geoip-asn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const cache = new CacheLru( { "maxSize": 1000 } );
var mmdb;

const resource = await externalResources
.add( "softvisio-node/geoip-asn/resources/geolite2-asn", import.meta.url )
.add( "softvisio-node/geoip-asn/resources/geolite2-asn" )
.on( "update", () => ( mmdb = null ) )
.check();

Expand Down

0 comments on commit d34584f

Please sign in to comment.