File tree Expand file tree Collapse file tree 5 files changed +166
-205
lines changed
Expand file tree Collapse file tree 5 files changed +166
-205
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,8 @@ export async function updateInvoice(
108108}
109109
110110export async function deleteInvoice ( id : string ) {
111- // throw new Error('Failed to Delete Invoice');
112-
113- try {
114- await sql `DELETE FROM invoices WHERE id = ${ id } ` ;
115- revalidatePath ( '/dashboard/invoices' ) ;
116- return { message : 'Deleted Invoice' } ;
117- } catch ( error ) {
118- return { message : 'Database Error: Failed to Delete Invoice.' } ;
119- }
111+ await sql `DELETE FROM invoices WHERE id = ${ id } ` ;
112+ revalidatePath ( '/dashboard/invoices' ) ;
120113}
121114
122115export async function authenticate (
Original file line number Diff line number Diff line change 22 "private" : true ,
33 "scripts" : {
44 "build" : " next build" ,
5- "dev" : " next dev --turbo " ,
5+ "dev" : " next dev --turbopack " ,
66 "start" : " next start"
77 },
88 "dependencies" : {
1212 "autoprefixer" : " 10.4.20" ,
1313 "bcrypt" : " ^5.1.1" ,
1414 "clsx" : " ^2.1.1" ,
15- "next" : " ^15.0.3 " ,
15+ "next" : " latest " ,
1616 "next-auth" : " 5.0.0-beta.19" ,
1717 "postcss" : " 8.4.49" ,
18- "react" : " 19.0.0-rc-cd22717c-20241013 " ,
19- "react-dom" : " 19.0.0-rc-cd22717c-20241013 " ,
20- "tailwindcss" : " 3.4.15 " ,
18+ "react" : " 19.0.0" ,
19+ "react-dom" : " 19.0.0" ,
20+ "tailwindcss" : " 3.4.16 " ,
2121 "typescript" : " 5.7.2" ,
2222 "use-debounce" : " ^10.0.4" ,
2323 "zod" : " ^3.23.8"
2424 },
2525 "devDependencies" : {
2626 "@types/bcrypt" : " ^5.0.2" ,
2727 "@types/node" : " 22.10.1" ,
28- "@types/react" : " npm:types-react@19.0.0-rc.1" ,
29- "@types/react-dom" : " npm:types-react-dom@19.0.0-rc.1"
30- },
31- "pnpm" : {
32- "overrides" : {
33- "@types/react" : " npm:types-react@19.0.0-rc.1" ,
34- "@types/react-dom" : " npm:types-react-dom@19.0.0-rc.1"
35- }
28+ "@types/react" : " 19.0.0" ,
29+ "@types/react-dom" : " 19.0.0"
3630 }
3731}
You can’t perform that action at this time.
0 commit comments