cast to number
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ MBTiles.prototype._open = function(uri) {
|
|||||||
|
|
||||||
var key = url.format(uri);
|
var key = url.format(uri);
|
||||||
this.filename = uri.pathname;
|
this.filename = uri.pathname;
|
||||||
this._batchSize = uri.query.batch;
|
this._batchSize = +uri.query.batch;
|
||||||
Step(function() {
|
Step(function() {
|
||||||
mbtiles._db = new sqlite3.Database(mbtiles.filename, this);
|
mbtiles._db = new sqlite3.Database(mbtiles.filename, this);
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user