More node 14+ error ERR_INVALID_ARG_TYPE fixes
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ function get_market_data(market, cb) {
|
||||
function create_lock(lockfile, cb) {
|
||||
if (settings.lock_during_index == true) {
|
||||
var fname = './tmp/' + lockfile + '.pid';
|
||||
fs.appendFile(fname, process.pid, function (err) {
|
||||
fs.appendFile(fname, process.pid.toString(), function (err) {
|
||||
if (err) {
|
||||
console.log("Error: unable to create %s", fname);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user