split out dateUtils on the backend

This commit is contained in:
azivner
2018-04-02 20:46:46 -04:00
parent 277368ab43
commit 6ab0cea4e3
24 changed files with 90 additions and 111 deletions

View File

@@ -1,5 +1,5 @@
const sql = require('./sql');
const utils = require('./utils');
const dateUtils = require('./date_utils');
const log = require('./log');
async function addEvent(comment) {
@@ -10,7 +10,7 @@ async function addNoteEvent(noteId, comment) {
await sql.insert('event_log', {
noteId : noteId,
comment: comment,
dateAdded: utils.nowDate()
dateAdded: dateUtils.nowDate()
});
log.info("Event log for " + noteId + ": " + comment);