mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 17:59:24 +02:00
Add new API to increment the used time
This commit is contained in:
parent
f4046e0fc3
commit
b55c375506
8 changed files with 257 additions and 4 deletions
|
@ -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 */))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue