From 2768919fc26885fdb920ede24e2b3eb0a63b5d85 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Wed, 21 Oct 2020 16:51:51 +0200 Subject: [PATCH] no avatar --- src/routes.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index 568cd35e..efa2b99a 100644 --- a/src/routes.js +++ b/src/routes.js @@ -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)