diff --git a/watcher.js b/watcher.js index d0bbd75..9233f7b 100644 --- a/watcher.js +++ b/watcher.js @@ -32,21 +32,22 @@ exports.watch = (projectID, folderID, credentials, interval) => { }) .then(data => { if (data === undefined) { // no new files changed, return + console.log("no new files modified since " + dateXSecondsAgo.toISOString()); return; } for (var index in data) { // console.log(data[index]); + var displayName = data[index].attributes.displayName; var lastModifiedTime = data[index].attributes.lastModifiedTime; - console.log(lastModifiedTime); + console.log(displayName + " was modified at " + lastModifiedTime); // TODO: if item is not in db, add to db and then download // TODO: if item is in db, check and compare lastModifiedTime - } }) .catch(err => { - console.error(err); + console.log(err); }); } \ No newline at end of file