Skip to content

Commit

Permalink
Mark newsroom as optional in coverage integration (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadxali authored Oct 17, 2024
2 parents ee8051d + 9f8adae commit eaa56cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/endpoints/CoverageIntegrations/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import Provider = CoverageEntry.Provider;

export interface CreateRequest {
newsroom: Newsroom['id'] | Newsroom['uuid'];
newsroom?: Newsroom['id'] | Newsroom['uuid'] | null;
provider: Provider;
input: string;
name: string;
Expand All @@ -19,6 +19,7 @@ export interface CreateRequest {
}

export interface UpdateRequest {
newsroom?: Newsroom['id'] | Newsroom['uuid'] | null;
input?: string;
name?: string;
description?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/types/CoverageIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface CoverageIntegration {
id: number;
name: string;
description: string | null;
newsroom: NewsroomRef;
newsroom: NewsroomRef | null;
provider: CoverageEntry.Provider;
input: string;
skip_author: boolean;
Expand Down

0 comments on commit eaa56cd

Please sign in to comment.