mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Adding date to submitted questions, sqlite insert fixes
This commit is contained in:
parent
e561cc871b
commit
db51e5f202
5 changed files with 12 additions and 6 deletions
|
@ -131,7 +131,7 @@ function setup(data: SubmoduleData): void {
|
|||
const msgObj = {
|
||||
sender: userid,
|
||||
reciever: parseInt(reciever),
|
||||
msg: msg,
|
||||
msg: msg.replace(/'/g, '').replace(/;/g, ''),
|
||||
type: type || 'text',
|
||||
date: new Date().getTime(),
|
||||
unread: 1,
|
||||
|
|
|
@ -214,7 +214,10 @@ function processIncomingRequestUsingDb(
|
|||
3
|
||||
)
|
||||
logger.DebugLog(currentQuestion, 'isadding', 3)
|
||||
addQuestion(qdb.data, sName, currentQuestion)
|
||||
addQuestion(qdb.data, sName, {
|
||||
...currentQuestion,
|
||||
date: new Date(),
|
||||
})
|
||||
})
|
||||
|
||||
currWrites++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue