Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 24, 2024
1 parent c81ffb1 commit 49364c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { resolve } from "path";

import {
APIV1Write,
DocsV1Write,
Expand All @@ -9,6 +7,7 @@ import {
convertDocsDefinitionToDb,
visitDbNavigationConfig,
} from "@fern-api/fdr-sdk";
import { resolve } from "path";
import type { AlgoliaSearchRecord } from "../../../services/algolia";
import { AlgoliaIndexSegmentManagerServiceImpl } from "../../../services/algolia-index-segment-manager";
import { AlgoliaSearchRecordGenerator } from "../../../services/algolia/AlgoliaSearchRecordGenerator";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
visitDiscriminatedUnion,
visitUnversionedDbNavigationConfig,
} from "@fern-api/fdr-sdk";
import { ApiDefinitionHolder } from "@fern-api/fdr-sdk/src/navigation";
import grayMatter from "gray-matter";
import { noop } from "lodash-es";
import { v4 as uuid } from "uuid";
Expand Down Expand Up @@ -309,7 +308,8 @@ export class AlgoliaSearchRecordGenerator {
if (api == null) {
LOGGER.error("Failed to find API definition for API reference node. id=", root.apiDefinitionId);
}
const holder = api != null ? ApiDefinitionHolder.create(convertDbAPIDefinitionToRead(api)) : undefined;
const holder =
api != null ? FernNavigation.ApiDefinitionHolder.create(convertDbAPIDefinitionToRead(api)) : undefined;
const records: AlgoliaSearchRecord[] = [];

const breadcrumbs = context.pathParts.map((part) => part.name);
Expand Down Expand Up @@ -668,7 +668,8 @@ export class AlgoliaSearchRecordGenerator {
if (api == null) {
LOGGER.error("Failed to find API definition for API reference node. id=", root.apiDefinitionId);
}
const holder = api != null ? ApiDefinitionHolder.create(convertDbAPIDefinitionToRead(api)) : undefined;
const holder =
api != null ? FernNavigation.ApiDefinitionHolder.create(convertDbAPIDefinitionToRead(api)) : undefined;
const records: AlgoliaSearchRecord[] = [];

const breadcrumbs = context.pathParts.map((part) => ({
Expand Down

0 comments on commit 49364c7

Please sign in to comment.