File tree Expand file tree Collapse file tree 5 files changed +529
-486
lines changed Expand file tree Collapse file tree 5 files changed +529
-486
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import postgres from 'postgres';
33const sql = postgres ( process . env . POSTGRES_URL ! , { ssl : 'require' } ) ;
44
55async function listInvoices ( ) {
6- const data = await sql `
6+ const data = await sql `
77 SELECT invoices.amount, customers.name
88 FROM invoices
99 JOIN customers ON invoices.customer_id = customers.id
1010 WHERE invoices.amount = 666;
1111 ` ;
1212
13- return data ;
13+ return data ;
1414}
1515
1616export async function GET ( ) {
@@ -19,8 +19,8 @@ export async function GET() {
1919 // 'Uncomment this file and remove this line. You can delete this file when you are finished.',
2020 // });
2121 try {
22- return Response . json ( await listInvoices ( ) ) ;
22+ return Response . json ( await listInvoices ( ) ) ;
2323 } catch ( error ) {
24- return Response . json ( { error } , { status : 500 } ) ;
24+ return Response . json ( { error } , { status : 500 } ) ;
2525 }
2626}
Original file line number Diff line number Diff line change 1414 "next" : " latest" ,
1515 "next-auth" : " 5.0.0-beta.25" ,
1616 "postcss" : " 8.5.1" ,
17- "postgres" : " ^3.4.5 " ,
17+ "postgres" : " ^3.4.6 " ,
1818 "react" : " latest" ,
1919 "react-dom" : " latest" ,
2020 "tailwindcss" : " 3.4.17" ,
2121 "typescript" : " 5.7.3" ,
2222 "use-debounce" : " ^10.0.4" ,
23- "zod" : " ^3.24.1 "
23+ "zod" : " ^3.25.17 "
2424 },
2525 "devDependencies" : {
2626 "@types/bcrypt" : " ^5.0.2" ,
2727 "@types/node" : " 22.10.7" ,
2828 "@types/react" : " 19.0.7" ,
2929 "@types/react-dom" : " 19.0.3"
30+ },
31+ "pnpm" : {
32+ "onlyBuiltDependencies" : [
33+ " bcrypt"
34+ ]
3035 }
3136}
You can’t perform that action at this time.
0 commit comments