Commit 66edfa1 1 parent 0ae6550 commit 66edfa1 Copy full SHA for 66edfa1
File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { NextResponse } from "next/server";
3
3
4
4
export async function GET ( ) {
5
5
try {
6
+ console . log ( "api/reports/update has called" ) ;
6
7
await fetchNewReports ( ) ;
7
8
await updateCMSContents ( ) ;
8
9
return NextResponse . json ( { status : 200 } ) ;
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ export const getCMSReports = async (): Promise<CMSContent[]> => {
168
168
filter : {
169
169
status : {
170
170
_eq : 'published' ,
171
+ } ,
172
+ Minted : {
173
+ _eq : true ,
171
174
}
172
175
} ,
173
176
} )
@@ -198,6 +201,9 @@ export const updateCMSReports = async (): Promise<CMSContent[]> => {
198
201
filter : {
199
202
status : {
200
203
_eq : 'published' ,
204
+ } ,
205
+ Minted : {
206
+ _eq : true ,
201
207
}
202
208
} ,
203
209
} )
You can’t perform that action at this time.
0 commit comments