fix: fix path.join

This commit is contained in:
jingsam
2019-03-01 11:59:20 +08:00
parent aaf9290256
commit 681f4cca31

View File

@@ -24,7 +24,7 @@ function hash(z, x, y) {
// MBTiles class for doing common operations (schema setup, tile reading,
// insertion, etc.)
module.exports = MBTiles;
MBTiles.schema = fs.readFileSync(path.join(__dirname + '/schema.sql'), 'utf8');
MBTiles.schema = fs.readFileSync(path.join(__dirname, './schema.sql'), 'utf8');
// Provides access to an mbtiles database file.
// - uri: A parsed URL hash, the only relevant part is `pathname`.