From cf1ced8e35fdcc2ba4397ab3256fb4983858a129 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Tue, 23 May 2017 13:53:56 -0400 Subject: [PATCH] Converted object to string --- config/sockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sockets.js b/config/sockets.js index 5e8e3d0..4d04d15 100644 --- a/config/sockets.js +++ b/config/sockets.js @@ -101,7 +101,7 @@ module.exports = { // If Keith, record location to file if (user.id==='56b020279f740067540f96e9'){ - fs.appendFile('/srv/tracman/demo.txt', loc, function (err) { + fs.appendFile('/srv/tracman/demo.txt', JSON.stringify(loc), function (err) { if (err) { console.error('Error saving demo stuff:',err.stack); } }); }