fix url competitive

This commit is contained in:
Warunee Tamkoo 2025-06-23 17:56:38 +07:00
parent 7e3bdf030f
commit 2a81a61f6f

View file

@ -11,7 +11,7 @@ export const load: PageServerLoad = async ({ fetch }) => {
exams.forEach((ex) => {
const { id, title, announcement_startDate } = ex;
const url = '/qualifying/' + id;
const url = '/competitive/' + id;
ex.date = dayjs(announcement_startDate).format('DD MMM BBBB');
ex.image = ex.image ? ex.image : '/images/exam_place_holder.png';
if (!ex.announcementExam) return; //ignore other date for normal post