File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dify-helm-watchdog/src/app/api/versions/[version] Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ interface ImagesResponse {
4444 */
4545export async function GET (
4646 request : Request ,
47- { params } : { params : { version : string } } ,
47+ { params } : { params : Promise < { version : string } > } ,
4848) {
4949 try {
50- const { version } = params ;
50+ const { version } = await params ;
5151 const url = new URL ( request . url ) ;
5252 const format = url . searchParams . get ( "format" ) || "json" ;
5353 const includeValidation = url . searchParams . get ( "include_validation" ) === "true" ;
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ export const runtime = "nodejs";
99 */
1010export async function GET (
1111 _request : Request ,
12- { params } : { params : { version : string } } ,
12+ { params } : { params : Promise < { version : string } > } ,
1313) {
1414 try {
15- const { version } = params ;
15+ const { version } = await params ;
1616
1717 const cache = await loadCache ( ) ;
1818 if ( ! cache ) {
You can’t perform that action at this time.
0 commit comments