Skip to content

Commit

Permalink
fix(api-headless-cms-ddb-es): missing elasticsearch on cms context
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored and Pavel910 committed Nov 27, 2024
1 parent bfa3f60 commit 32bb8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-headless-cms-ddb-es/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { AttributeDefinition, Entity, Table, TableConstructor } from "@webiny/db
import { DynamoDBDocument } from "@webiny/aws-sdk/client-dynamodb";
import { Client } from "@elastic/elasticsearch";
import { PluginsContainer } from "@webiny/plugins";
import { ElasticsearchContext } from "@webiny/api-elasticsearch/types";

/**
* A definition of the entry that is being prepared for the Elasticsearch.
Expand Down Expand Up @@ -167,10 +166,11 @@ export interface StorageOperationsFactoryParams {
plugins?: PluginCollection;
}

export interface CmsContext extends BaseCmsContext, ElasticsearchContext {
export interface CmsContext extends BaseCmsContext {
cms: HeadlessCms & {
storageOperations: HeadlessCmsStorageOperations;
};
[key: string]: any;
}

export interface HeadlessCmsStorageOperations extends BaseHeadlessCmsStorageOperations<CmsContext> {
Expand Down

0 comments on commit 32bb8d7

Please sign in to comment.