修正模块左侧接口列表无法排序的BUG

pull/304/head
wukun 7 years ago
parent d3cd8f92aa
commit 8d5e82b084

@ -200,7 +200,10 @@ router.get('/repository/get', async (ctx) => {
QueryInclude.RepositoryHierarchy,
QueryInclude.Collaborators
],
order: [[{ model: Module, as: 'modules' }, 'priority', 'asc']]
order: [
[{ model: Module, as: 'modules' }, 'priority', 'asc'],
[{ model: Module, as: 'modules' }, {model: Interface, as: 'interfaces'}, 'priority', 'asc']
]
})
await RedisService.setCache(CACHE_KEY.REPOSITORY_GET, JSON.stringify(repository), ctx.query.id)
}

Loading…
Cancel
Save