More node 14+ error ERR_INVALID_ARG_TYPE fixes

This commit is contained in:
joeuhren
2020-12-03 16:21:06 -07:00
parent 6d74c3e6de
commit 4b208b74a4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ if (process.argv[2] == 'index') {
function create_lock(cb) {
if ( database == 'index' ) {
var fname = './tmp/' + database + '.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);