summaryrefslogtreecommitdiffstats
path: root/server/lib/log.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/log.js')
-rw-r--r--server/lib/log.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/lib/log.js b/server/lib/log.js
index 3b5dcd3..fede874 100644
--- a/server/lib/log.js
+++ b/server/lib/log.js
@@ -11,11 +11,11 @@ async function log ({ category, description, groupId, clientId, userId }) {
clientId,
userId
})
- if (groupId) entry.groupSnapshot = JSON.stringify(await db.group.findOne({ where: { id: groupId }}))
- if (clientId) entry.clientSnapshot = JSON.stringify(await db.client.findOne({ where: { id: clientId }}))
- if (userId) entry.userSnapshot = JSON.stringify(await db.user.findOne({ where: { id: userId }}))
+ if (groupId) entry.groupSnapshot = JSON.stringify(await db.group.findOne({ where: { id: groupId } }))
+ if (clientId) entry.clientSnapshot = JSON.stringify(await db.client.findOne({ where: { id: clientId } }))
+ if (userId) entry.userSnapshot = JSON.stringify(await db.user.findOne({ where: { id: userId } }))
await entry.save()
return entry
}
-module.exports = log \ No newline at end of file
+module.exports = log