Merge pull request #223 from shocknet/fix/no-avatar

no avatar
This commit is contained in:
Daniel Lugo 2020-10-21 11:13:00 -04:00 committed by GitHub
commit b0dd00279e

View file

@ -2626,8 +2626,11 @@ module.exports = async (
const apiGunRequestsReceivedGet = (_, res) => {
try {
const data = Events.getCurrentReceivedReqs()
const noAvatar = data.map(req => {
return { ...req, recipientAvatar: null }
})
res.json({
data
data: noAvatar
})
} catch (err) {
logger.error(err)
@ -2643,8 +2646,11 @@ module.exports = async (
const apiGunRequestsSentGet = (_, res) => {
try {
const data = Events.getCurrentSentReqs()
const noAvatar = data.map(req => {
return { ...req, recipientAvatar: null }
})
res.json({
data
data: noAvatar
})
} catch (err) {
logger.error(err)