null check

This commit is contained in:
Daniel Lugo 2020-07-23 23:04:22 -04:00
parent 41649c7bce
commit fc32cf3996

View file

@ -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
})