no avatar

This commit is contained in:
hatim boufnichel 2020-10-21 16:51:51 +02:00
parent 201060919b
commit 2768919fc2

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)