mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging fixes / imporvements, voteTodo api
This commit is contained in:
@@ -8,6 +8,13 @@ interface Options {
|
||||
exceptions: Array<string>
|
||||
}
|
||||
|
||||
const testUser = {
|
||||
id: 19,
|
||||
avaiblePWRequests: 999,
|
||||
pwRequestCount: 19,
|
||||
created: new Date(),
|
||||
}
|
||||
|
||||
export default function(options: Options): any {
|
||||
const { userDB, jsonResponse, exceptions } = options
|
||||
|
||||
@@ -34,9 +41,7 @@ export default function(options: Options): any {
|
||||
|
||||
if (process.env.NS_NOUSER) {
|
||||
req.session = {
|
||||
user: {
|
||||
id: 19,
|
||||
},
|
||||
user: testUser,
|
||||
sessionID: sessionID || 111111111111111111,
|
||||
isException: false,
|
||||
}
|
||||
|
Reference in New Issue
Block a user