Update event management system by adding Uhrzeit to Termine; enhance data handling in API and CSV exports to accommodate new fields. Refactor Termine component for improved date and time formatting, ensuring accurate display of events. Clean up unused code in MannschaftenUebersicht and streamline layout in Mannschaften index page for better user experience.
This commit is contained in:
@@ -39,7 +39,7 @@ const news_post = defineEventHandler(async (event) => {
|
||||
});
|
||||
}
|
||||
const body = await readBody(event);
|
||||
const { id, title, content, isPublic } = body;
|
||||
const { id, title, content, isPublic, expiresAt, isHidden } = body;
|
||||
if (!title || !content) {
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
@@ -51,6 +51,8 @@ const news_post = defineEventHandler(async (event) => {
|
||||
title,
|
||||
content,
|
||||
isPublic: isPublic || false,
|
||||
expiresAt: expiresAt || void 0,
|
||||
isHidden: isHidden || false,
|
||||
author: user.name
|
||||
});
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user