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,7 +1,7 @@
"use strict";
const repository = require('../../services/repository');
const utils = require('../../services/utils');
const dateUtils = require('../../services/date_utils');
const optionService = require('../../services/options');
const RecentNote = require('../../entities/recent_note');
@@ -27,7 +27,7 @@ async function addRecentNote(req) {
const recentNote = new RecentNote({
branchId: branchId,
notePath: notePath,
dateAccessed: utils.nowDate(),
dateAccessed: dateUtils.nowDate(),
isDeleted: 0
});