Skip to content

Commit

Permalink
fix(types): set metadata to main contribution document (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr authored Aug 19, 2024
1 parent 1d13db7 commit ff69641
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions shared/types/src/elastic/contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ type ContributionRef = {

type ElasticSearchContributionBase = {
description: string;
title: string;
slug: string;
breadcrumbs: Breadcrumb[];
source: "contributions";
Expand All @@ -108,11 +107,12 @@ type ElasticSearchContributionBase = {
idcc: string;
messageBlock?: string;
date: string;
} & (
| ElasticSearchContributionFicheSp
| ElasticSearchContributionContent
| ElasticSearchContributionGenericNoCDT
);
} & ContributionMetadata &
(
| ElasticSearchContributionFicheSp
| ElasticSearchContributionContent
| ElasticSearchContributionGenericNoCDT
);

export type ElasticSearchContributionGeneric = ElasticSearchContributionBase & {
ccSupported: string[];
Expand Down

0 comments on commit ff69641

Please sign in to comment.