This commit is contained in:
2024-10-03 16:22:20 +09:00
parent e512da9a48
commit d865938430
62 changed files with 931 additions and 905 deletions

View File

@@ -32,13 +32,14 @@ const getArticleListEventHandler = defineEventHandler(async (event: any) => {
database,
sql,
(rows) => {
return rows;
return rows as Array<NewsEntry>;
}
);
} catch (err: any) {
const error = err as Error;
throw createError({
statusCode: 500,
statusMessage: err.message,
statusMessage: error.message,
});
}