Skip to content

Commit

Permalink
Log subrequests
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 11, 2024
1 parent a094b99 commit a032bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/drupal/get-resource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const getResourceByPath = async <T extends JsonApiResource>(
]

const url = buildUrl("/subrequests", {_format: "json"})
console.log('subrequest', JSON.stringify(payload));

let response = await fetch(url.toString(), {
next: options.next,
Expand Down Expand Up @@ -180,7 +181,6 @@ export const getConfigPageResource = async <T extends JsonApiResource>(
next?: NextFetchRequestConfig
} & JsonApiWithLocaleOptions
): Promise<T | undefined> => {
options = {next: {revalidate: 604800}, ...options}

let response;
try {
Expand Down

0 comments on commit a032bdf

Please sign in to comment.