mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
make json store dir configurable
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
const store = require('json-fs-store')('/tmp/pdfer-store/');
|
||||
const storeDir = process.env.JSON_STORE || '/tmp/pdfer-store/';
|
||||
|
||||
console.log(`using json-store at ${storeDir}`);
|
||||
|
||||
const store = require('json-fs-store')(storeDir);
|
||||
const { promisify } = require('util');
|
||||
|
||||
const list = promisify(store.list);
|
||||
|
||||
Reference in New Issue
Block a user