@@ -166,6 +166,7 @@ export const updateSiteAnalytics = inngest.createFunction(
166
166
customPageData,
167
167
} : { customPageData : PaginatedDocs < CustomPage > } =
168
168
await authGQLFetcher ( {
169
+ isAuthOverride : true ,
169
170
variables : {
170
171
customPageSlug : doc . customPageSlug ,
171
172
siteId : siteId ,
@@ -213,6 +214,7 @@ export const updateSiteAnalytics = inngest.createFunction(
213
214
//@ts -ignore
214
215
const { postData } : { postData : PaginatedDocs < Post > } =
215
216
await authGQLFetcher ( {
217
+ isAuthOverride : true ,
216
218
variables : {
217
219
siteId : siteId ,
218
220
postSlug : doc ?. postSlug ,
@@ -280,6 +282,7 @@ export const updateSiteAnalytics = inngest.createFunction(
280
282
//@ts -ignore
281
283
const { entryData } : { entryData : PaginatedDocs < Entry > } =
282
284
await authGQLFetcher ( {
285
+ isAuthOverride : true ,
283
286
customPath :
284
287
customCollection && ! ! siteDomain
285
288
? `https://${ siteDomain } :4000/api/graphql`
@@ -349,6 +352,7 @@ export const updateSiteAnalytics = inngest.createFunction(
349
352
//@ts -ignore
350
353
const { listData } : { listData : PaginatedDocs < Entry > } =
351
354
await authGQLFetcher ( {
355
+ isAuthOverride : true ,
352
356
customPath :
353
357
customCollection && ! ! siteDomain
354
358
? `https://${ siteDomain } :4000/api/graphql`
@@ -401,6 +405,7 @@ export const updateSiteAnalytics = inngest.createFunction(
401
405
) ;
402
406
403
407
const getPostsTotal = ( await authRestFetcher ( {
408
+ isAuthOverride : true ,
404
409
method : "GET" ,
405
410
path : `https://mana.wiki/api/posts${ postTotalQuery } ` ,
406
411
} ) ) as PaginatedDocs < Post > ;
@@ -428,6 +433,7 @@ export const updateSiteAnalytics = inngest.createFunction(
428
433
} ) => {
429
434
if ( collection . customDatabase == true ) {
430
435
const totalCustomEntries = await authRestFetcher ( {
436
+ isAuthOverride : true ,
431
437
method : "GET" ,
432
438
path : `https://${
433
439
siteDomain ? siteDomain : `${ siteSlug } .mana.wiki`
@@ -436,6 +442,7 @@ export const updateSiteAnalytics = inngest.createFunction(
436
442
return totalCustomEntries . totalDocs ;
437
443
}
438
444
const totalCoreEntries = await authRestFetcher ( {
445
+ isAuthOverride : true ,
439
446
method : "GET" ,
440
447
path : `https://mana.wiki/api/entries${ entryTotalQuery } ` ,
441
448
} ) ;
@@ -447,6 +454,7 @@ export const updateSiteAnalytics = inngest.createFunction(
447
454
448
455
// Update site with new data
449
456
await authRestFetcher ( {
457
+ isAuthOverride : true ,
450
458
method : "PATCH" ,
451
459
path : `https://mana.wiki/api/sites/${ siteId } ` ,
452
460
body : {
0 commit comments