Skip to content

Commit

Permalink
Make summary id autoincrease and enlarge api_endpoint (#206)
Browse files Browse the repository at this point in the history
- Make summary `id` autoincrease 
- Enlarge `api_endpoint`
  • Loading branch information
fisheryv authored Dec 25, 2023
1 parent aa55c6f commit fcc5896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/ai/summary/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const GET = async (req: NextRequest) => {
break
}
}
await sql`create table if not exists summary (id int NOT NULL PRIMARY KEY, api_endpoint varchar(30), summary text, lang varchar(10), modified varchar(30), cid varchar(40))`
await sql`create table if not exists summary (id SERIAL PRIMARY KEY, api_endpoint varchar(50), summary text, lang varchar(10), modified varchar(30), cid varchar(40))`

const sqlResult =
await sql`select * from summary where lang = ${lang} and api_endpoint = ${API_URL} and modified = ${modified} and cid = ${cid}`
Expand Down

1 comment on commit fcc5896

@vercel
Copy link

@vercel vercel bot commented on fcc5896 Dec 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
springtide.vercel.app
shiro-git-main-innei.vercel.app
innei.in

Please sign in to comment.