Commit 51a5a1e9 authored by 任国军's avatar 任国军

relations add type

parent 2d10ca9c
Pipeline #19250 passed with stage
in 56 seconds
......@@ -750,7 +750,7 @@ class InstitutionSubService extends Service {
let relations = [];
if (!ctx.isEmpty(article.relations)) {
const ids = article.relations.split(',');
relations = await ctx.classModel.V4.CourseArticle.findAll({ where: { id: { $in: ids }, status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], attributes: [ 'id', 'title', 'image', 'read_count' ] });
relations = await ctx.classModel.V4.CourseArticle.findAll({ where: { id: { $in: ids }, status: 'online', is_deleted: 0 }, order: [[ 'sort', 'asc' ], [ 'id', 'desc' ]], attributes: [ 'id', 'title', 'type', 'image', 'read_count' ] });
}
const ret = {
id: article.id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment