chore: server code formatting
This commit is contained in:
parent
aedabcbdee
commit
68517170e2
234 changed files with 9824 additions and 6195 deletions
|
|
@ -8,9 +8,10 @@ const buildApolloContext = async ({ req, res }) => {
|
|||
const user = await users.verifyAndUpdateUser(
|
||||
req.session.user.id,
|
||||
req.headers['user-agent'] || 'Unknown',
|
||||
req.ip
|
||||
req.ip,
|
||||
)
|
||||
if (!user || !user.enabled) throw new AuthenticationError('Authentication failed')
|
||||
if (!user || !user.enabled)
|
||||
throw new AuthenticationError('Authentication failed')
|
||||
|
||||
req.session.ua = req.headers['user-agent'] || 'Unknown'
|
||||
req.session.ipAddress = req.ip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue