From 9e67b6b062b897e5a9c000d1469146a49da11d3d Mon Sep 17 00:00:00 2001 From: mamengke01 <794347210@qq.com> Date: Thu, 7 Jan 2021 12:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Item.ts | 2 +- shared/pubUtils/timeUtil.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 ); }