mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Possible answers penalty fixes, logging imporvements, added tests
This commit is contained in:
parent
39cb92308d
commit
f5ad460e24
8 changed files with 396 additions and 48 deletions
|
@ -31,8 +31,9 @@ export interface QuestionData {
|
|||
images?: Array<string>
|
||||
hashedImages?: Array<string>
|
||||
possibleAnswers?: Array<{
|
||||
text: string
|
||||
selectedByUser: boolean
|
||||
type: string
|
||||
val: string
|
||||
selectedByUser?: boolean
|
||||
}>
|
||||
}
|
||||
|
||||
|
@ -96,7 +97,11 @@ export interface User {
|
|||
export interface Request<T = any> extends express.Request {
|
||||
body: T
|
||||
cookies: any
|
||||
session: any
|
||||
session: {
|
||||
user?: User
|
||||
sessionID?: string
|
||||
isException?: boolean
|
||||
}
|
||||
files: any
|
||||
query: { [key: string]: string }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue