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:
parent
98f2cc4608
commit
a9c8bf9a90
2 changed files with 10 additions and 6 deletions
|
@ -706,11 +706,15 @@ function GetApp(): ModuleType {
|
||||||
utils.AppendToFile(
|
utils.AppendToFile(
|
||||||
utils.GetDateString() +
|
utils.GetDateString() +
|
||||||
':\n' +
|
':\n' +
|
||||||
JSON.stringify({
|
JSON.stringify(
|
||||||
...req.body,
|
{
|
||||||
userID: user ? user.id : 'no user',
|
...req.body,
|
||||||
ip: ip,
|
userID: user ? user.id : 'no user',
|
||||||
}),
|
ip: ip,
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
2
|
||||||
|
),
|
||||||
msgFile
|
msgFile
|
||||||
)
|
)
|
||||||
res.json({ success: true })
|
res.json({ success: true })
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit e5138adf663fc6374c0e4dce43fc665f4cac3ed7
|
Subproject commit e224260a00437bca1338641b4da4dc5cca627016
|
Loading…
Add table
Add a link
Reference in a new issue