feat: separate trails and formations in cms
This commit is contained in:
@@ -153,7 +153,7 @@ export const courseRoutes: FastifyPluginAsync = async (app) => {
|
||||
app.get('/paths', async () => {
|
||||
const result = await pool.query(
|
||||
`select
|
||||
p.id, p.title, p.description,
|
||||
p.id, p.title, p.description, p.kind,
|
||||
coalesce(p.cover_image_url, (
|
||||
select value #>> '{}' from platform_settings where key = 'media.defaultCoverImageUrl'
|
||||
)) as "coverImageUrl",
|
||||
|
||||
Reference in New Issue
Block a user