|
@@ -5,7 +5,7 @@ const {
|
|
|
async function MediaService(data) {
|
|
|
const list = [];
|
|
|
const skip = (data.skip || 0) * (data.limit || 100);
|
|
|
- console.log('---------------',data)
|
|
|
+ console.log('---------------', data)
|
|
|
const orilist = await db.collection('AudioAndVideo').where({
|
|
|
type: _.eq(data.typeMedia),
|
|
|
activity_name: _.eq(data.activityName)
|
|
@@ -59,7 +59,8 @@ async function MediaOnceService(data) {
|
|
|
url: v.url,
|
|
|
title: v.title,
|
|
|
cover: v.cover,
|
|
|
- id: v._id
|
|
|
+ id: v._id,
|
|
|
+ type: v.type
|
|
|
})
|
|
|
} else {
|
|
|
// push
|
|
@@ -72,7 +73,8 @@ async function MediaOnceService(data) {
|
|
|
url: v.url,
|
|
|
title: v.title,
|
|
|
cover: v.cover,
|
|
|
- id: v._id
|
|
|
+ id: v._id,
|
|
|
+ type: v.type
|
|
|
}]
|
|
|
})
|
|
|
}
|