const {Platform} = require('../models/platform');
module.exports = {
getTrades: function(id,userId) {
Platform.findOne({platform: id, userID: userId}, (err,doc) => {
if(err) return res.status(400).send(err);
console.log(doc)
return (doc);
})
},
multiply: function(a,b) {
return a*b
}
};