Add new API to increment the used time

This commit is contained in:
Jonas Lochmann 2020-01-27 01:00:00 +01:00
parent f4046e0fc3
commit b55c375506
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
8 changed files with 257 additions and 4 deletions

View file

@ -19,7 +19,7 @@ import * as Sequelize from 'sequelize'
import { AddUsedTimeAction } from '../../../../action'
import { Cache } from '../cache'
const getRoundedTimestamp = () => {
export const getRoundedTimestamp = () => {
const now = Date.now()
return now - (now % (1000 * 60 * 60 * 24 * 2 /* 2 days */))