mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Saving user feedback in formatted json
This commit is contained in:
@@ -706,11 +706,15 @@ function GetApp(): ModuleType {
|
|||||||
utils.AppendToFile(
|
utils.AppendToFile(
|
||||||
utils.GetDateString() +
|
utils.GetDateString() +
|
||||||
':\n' +
|
':\n' +
|
||||||
JSON.stringify({
|
JSON.stringify(
|
||||||
|
{
|
||||||
...req.body,
|
...req.body,
|
||||||
userID: user ? user.id : 'no user',
|
userID: user ? user.id : 'no user',
|
||||||
ip: ip,
|
ip: ip,
|
||||||
}),
|
},
|
||||||
|
null,
|
||||||
|
2
|
||||||
|
),
|
||||||
msgFile
|
msgFile
|
||||||
)
|
)
|
||||||
res.json({ success: true })
|
res.json({ success: true })
|
||||||
|
Submodule submodules/qmining-page updated: e5138adf66...e224260a00
Reference in New Issue
Block a user