pass the timestamp in friend request api

master
Bhaskara Kishore 3 years ago
parent 0bcb16613f
commit b9de78e368

@ -50,7 +50,7 @@ exports.friendRequest = async (request, reply) => {
await friendRequest.save(); await friendRequest.save();
console.log("friendRequest", friendRequest) console.log("friendRequest", friendRequest)
reply.send({ message: 'Friend request sent' }); reply.send({ timestamp: friendRequest.timestamp, message: 'Friend request sent' });
} catch (err) { } catch (err) {
reply.status(400).send({ error: err.message }); reply.status(400).send({ error: err.message });
} }

Loading…
Cancel
Save