Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev committed Dec 26, 2024
1 parent e64b521 commit c68407c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ type PromiseWithAbortController = [Promise<unknown>, AbortController];
type DataFetcherOptions = {
chartsEngine: ChartsEngine;
sources: Record<string, Source | string>;
/**
* @deprecated will be removed
*/
req?: Request;
ctx: AppContext;
postprocess?:
Expand Down Expand Up @@ -220,6 +223,7 @@ export class DataFetcher {
const queue = new PQueue({concurrency: CONCURRENT_REQUESTS_LIMIT});
const fetchPromisesList: (() => unknown)[] = [];

// TODO: will be removed after migrations
if (req) {
isEmbed = req.headers[DL_EMBED_TOKEN_HEADER] !== undefined;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export class ProcessorHooks {
ctx,
hooksContext,
}: {
/**
* @deprecated will be removed
*/
req: Request;
config: Record<string, any>;
isEditMode: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ export type ProcessorParams = {
userLang: string | null;
userId: string | null;
iamToken: string | null;
/**
* @deprecated will be removed
*/
req: Request;
responseOptions?: Record<string, string | boolean>;
uiOnly?: boolean;
Expand Down

0 comments on commit c68407c

Please sign in to comment.