null check
This commit is contained in:
parent
41649c7bce
commit
fc32cf3996
1 changed files with 1 additions and 1 deletions
|
|
@ -1737,7 +1737,7 @@ module.exports = async (
|
|||
try {
|
||||
const user = require('../services/gunDB/Mediator').getUser()
|
||||
const data = await timeout5(user.get(Key.PROFILE).get(Key.AVATAR).then())
|
||||
logger.info(`avatar poll:${data.length} chars`)
|
||||
logger.info(`avatar poll:${(data || '').length} chars`)
|
||||
res.json({
|
||||
data
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue