Possible answers penalty fixes, logging imporvements, added tests

This commit is contained in:
mrfry 2022-03-23 16:10:16 +01:00
parent 39cb92308d
commit f5ad460e24
8 changed files with 396 additions and 48 deletions

View file

@ -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 }
}