Skip to content

Commit

Permalink
fix(api-headless-cms): remove entry key
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Nov 25, 2024
1 parent 7ce8d5d commit 29278dd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/api-headless-cms/src/utils/entryStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import WebinyError from "@webiny/error";
import { StorageTransformPlugin } from "~/plugins/StorageTransformPlugin";
import { CmsContext, CmsEntry, CmsModel, CmsModelField } from "~/types";
import { getBaseFieldType } from "~/utils/getBaseFieldType";
import ucFirst from "lodash/upperFirst";

export interface GetStoragePluginFactory {
(context: Pick<CmsContext, "plugins">): (fieldType: string) => StorageTransformPlugin<any>;
Expand Down Expand Up @@ -51,10 +50,6 @@ const entryStorageTransform = async (
): Promise<CmsEntry> => {
const getStoragePlugin = getStoragePluginFactory(context);

const key = `__transformed${ucFirst(operation)}`;
// @ts-expect-error
entry[key] = (entry[key] || 0) + 1;

const transformedValues: Record<string, any> = {};
for (const field of model.fields) {
const baseType = getBaseFieldType(field);
Expand Down

0 comments on commit 29278dd

Please sign in to comment.