mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging user id in idstats
This commit is contained in:
parent
814d38dc8d
commit
8a47792bde
3 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,7 @@ const { addQuestion, getSubjNameWithoutYear } = require('./classes.js')
|
|||
const writeAfter = 1 // write after # of adds FIXME: set reasonable save rate
|
||||
var currWrites = 0
|
||||
|
||||
function ProcessIncomingRequest(recievedData, qdb, infos, dryRun) {
|
||||
function ProcessIncomingRequest(recievedData, qdb, infos, dryRun, user) {
|
||||
return new Promise((resolve, reject) => {
|
||||
logger.DebugLog('Processing incoming request', 'actions', 1)
|
||||
if (recievedData === undefined) {
|
||||
|
@ -153,7 +153,7 @@ function ProcessIncomingRequest(recievedData, qdb, infos, dryRun) {
|
|||
let subjRow = '\t' + data.subj
|
||||
if (data.id) {
|
||||
subjRow += ' ( CID: ' + logger.logHashed(data.id) + ')'
|
||||
idStats.LogId(data.id, data.subj)
|
||||
idStats.LogId(user.id, data.subj)
|
||||
}
|
||||
logger.Log(subjRow)
|
||||
if (data.version !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue