|
|
|
@ -59,10 +59,10 @@ const rosterFns = {
|
|
|
|
|
|
|
|
|
|
const matchFns = {
|
|
|
|
|
getAll: async () => {
|
|
|
|
|
return await matches.find().populate('orange').populate('blue').populate('stream').exec()
|
|
|
|
|
return await matches.find().populate('orange').populate('blue').exec()
|
|
|
|
|
},
|
|
|
|
|
getById: async (id) => {
|
|
|
|
|
return await matches.findById(id).populate('orange').populate('blue').populate('stream').exec()
|
|
|
|
|
return await matches.findById(id).populate('orange').populate('blue').exec()
|
|
|
|
|
},
|
|
|
|
|
update: async(id, data) => {
|
|
|
|
|
return await matches.findByIdAndUpdate(id, data).exec()
|
|
|
|
|