Add rich HTML course lead/body and refresh AI course media from delivery v2.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Course detail pages can show sanitized HTML ad copy under the hero and a structured body; posters and brochures are updated for both AI workshops. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
afd2b3333c
commit
bd2cfa5a26
26 files changed
+801
-30
No files matched your search
@@ -43,6 +43,8 @@ const COURSE_COLUMNS: Record<string, string> = {
|
||||
registrationUrl: "registration_url",
|
||||
posterImageUrl: "poster_image_url",
|
||||
brochureImageUrl: "brochure_image_url",
|
||||
leadHtml: "lead_html",
|
||||
bodyHtml: "body_html",
|
||||
seoDescription: "seo_description",
|
||||
published: "published",
|
||||
};
|
||||
|
||||
@@ -64,8 +64,9 @@ export async function POST(request: NextRequest) {
|
||||
await query(
|
||||
`INSERT INTO courses
|
||||
(id, slug, title, summary, duration_hours, format, price,
|
||||
registration_url, poster_image_url, brochure_image_url, image_url, seo_description, published)
|
||||
VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13)`,
|
||||
registration_url, poster_image_url, brochure_image_url, image_url,
|
||||
lead_html, body_html, seo_description, published)
|
||||
VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15)`,
|
||||
[
|
||||
id,
|
||||
d.slug,
|
||||
@@ -78,6 +79,8 @@ export async function POST(request: NextRequest) {
|
||||
d.posterImageUrl,
|
||||
d.brochureImageUrl,
|
||||
d.posterImageUrl,
|
||||
d.leadHtml,
|
||||
d.bodyHtml,
|
||||
d.seoDescription,
|
||||
d.published,
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user