mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
p2p fixes
This commit is contained in:
parent
2edc87d5dd
commit
16d6f04936
17 changed files with 707 additions and 582 deletions
|
@ -23,7 +23,6 @@ import type { Request, User } from '../types/basicTypes'
|
|||
import type { Database } from 'better-sqlite3'
|
||||
|
||||
import logger from '../utils/logger'
|
||||
import utils from '../utils/utils'
|
||||
import dbtools from '../utils/dbtools'
|
||||
|
||||
interface Options {
|
||||
|
@ -133,7 +132,7 @@ export default function (options: Options): RequestHandler {
|
|||
userDB,
|
||||
'sessions',
|
||||
{
|
||||
lastAccess: utils.GetDateString(),
|
||||
lastAccess: new Date().getTime(),
|
||||
},
|
||||
{
|
||||
id: sessionID,
|
||||
|
@ -144,7 +143,7 @@ export default function (options: Options): RequestHandler {
|
|||
userDB,
|
||||
'users',
|
||||
{
|
||||
lastAccess: utils.GetDateString(),
|
||||
lastAccess: new Date().getTime(),
|
||||
},
|
||||
{
|
||||
id: user.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue