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';
3
3
const sql = postgres ( process . env . POSTGRES_URL ! , { ssl : 'require' } ) ;
4
4
5
5
async function listInvoices ( ) {
6
- const data = await sql `
6
+ const data = await sql `
7
7
SELECT invoices.amount, customers.name
8
8
FROM invoices
9
9
JOIN customers ON invoices.customer_id = customers.id
10
10
WHERE invoices.amount = 666;
11
11
` ;
12
12
13
- return data ;
13
+ return data ;
14
14
}
15
15
16
16
export async function GET ( ) {
@@ -19,8 +19,8 @@ export async function GET() {
19
19
// 'Uncomment this file and remove this line. You can delete this file when you are finished.',
20
20
// });
21
21
try {
22
- return Response . json ( await listInvoices ( ) ) ;
22
+ return Response . json ( await listInvoices ( ) ) ;
23
23
} catch ( error ) {
24
- return Response . json ( { error } , { status : 500 } ) ;
24
+ return Response . json ( { error } , { status : 500 } ) ;
25
25
}
26
26
}
Original file line number Diff line number Diff line change 14
14
"next" : " latest" ,
15
15
"next-auth" : " 5.0.0-beta.25" ,
16
16
"postcss" : " 8.5.1" ,
17
- "postgres" : " ^3.4.5 " ,
17
+ "postgres" : " ^3.4.6 " ,
18
18
"react" : " latest" ,
19
19
"react-dom" : " latest" ,
20
20
"tailwindcss" : " 3.4.17" ,
21
21
"typescript" : " 5.7.3" ,
22
22
"use-debounce" : " ^10.0.4" ,
23
- "zod" : " ^3.24.1 "
23
+ "zod" : " ^3.25.17 "
24
24
},
25
25
"devDependencies" : {
26
26
"@types/bcrypt" : " ^5.0.2" ,
27
27
"@types/node" : " 22.10.7" ,
28
28
"@types/react" : " 19.0.7" ,
29
29
"@types/react-dom" : " 19.0.3"
30
+ },
31
+ "pnpm" : {
32
+ "onlyBuiltDependencies" : [
33
+ " bcrypt"
34
+ ]
30
35
}
31
36
}
You can’t perform that action at this time.
0 commit comments