Refactor API endpoints to use cached data and update Code of Conduct to Contributor Covenant

This commit is contained in:
yuanhau 2025-05-14 18:52:14 +08:00
parent 878ac4f1a6
commit 96b297f617
17 changed files with 207 additions and 31 deletions

View file

@ -46,7 +46,7 @@ create table if not exists news_articles (
author text,
related_uuid text not null
)
`
`;
const hotNews = await sql`
create table if not exists hot_news (
@ -57,10 +57,9 @@ create table if not exists hot_news (
related_uuid text not null,
created_at timestamptz default current_timestamp
)
`
`;
console.log("Creation Complete");
await sql.end();
process.exit(0)
process.exit(0);