diff --git a/shared/db/Item.ts b/shared/db/Item.ts index 9612e18e6..ae591f756 100644 --- a/shared/db/Item.ts +++ b/shared/db/Item.ts @@ -1,6 +1,6 @@ import BaseModel from './BaseModel'; import { index, getModelForClass, prop, DocumentType, modelOptions } from '@typegoose/typegoose'; -const _ = require('underscore'); +// const _ = require('underscore'); const Transaction = require('mongoose-transactions'); @index({ roleId: 1, id: 1 }) @index({ seqId: 1 }) diff --git a/shared/pubUtils/timeUtil.ts b/shared/pubUtils/timeUtil.ts index 7e15c1309..d09f57550 100644 --- a/shared/pubUtils/timeUtil.ts +++ b/shared/pubUtils/timeUtil.ts @@ -1,6 +1,5 @@ const PER_SECOND = 1 * 1000; -const PER_DAY = 24 * 60 * 60; export function nowSeconds() { return Math.floor(Date.now() / PER_SECOND ); }