mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Refactor API endpoints to use cached data and update Code of Conduct to Contributor Covenant
This commit is contained in:
parent
878ac4f1a6
commit
96b297f617
17 changed files with 207 additions and 31 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue