Skip to content

Commit

Permalink
fixed subtitle typing
Browse files Browse the repository at this point in the history
  • Loading branch information
twallnerWaretec committed Jun 18, 2024
1 parent f784d80 commit 5db7307
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/repco-cli/src/commands/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function createItem() {
contentUrl: '',
originalLanguages: {},
removed: false,
subtitle: {},
},
}
return item
Expand Down
2 changes: 1 addition & 1 deletion packages/repco-core/src/datasources/activitypub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ export class ActivityPubDataSource

const content: form.ContentItemInput = {
title: titleJson,
subtitle: 'missing',
subtitle: {},
pubDate: new Date(video.published),
content: contentJson,
contentFormat: video.mediaType, // "text/markdown"
Expand Down
2 changes: 1 addition & 1 deletion packages/repco-core/src/datasources/cba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ export class CbaDataSource implements DataSource {
content: contentJson,
contentFormat: 'text/html',
title: title,
subtitle: 'missing',
summary: summary,
subtitle: {},
PublicationService: this._uriLink('station', post.meta.station_id),
Concepts: conceptLinks,
MediaAssets: mediaAssetLinks,
Expand Down
1 change: 1 addition & 0 deletions packages/repco-core/src/datasources/rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ export class RssDataSource extends BaseDataSource implements DataSource {
title: titleJson,
summary: summaryJson,
content: contentJson,
subtitle: {},
contentFormat: 'text/plain',
pubDate: item.pubDate ? new Date(item.pubDate) : null,
PrimaryGrouping: { uri: this.endpoint.toString() },
Expand Down
1 change: 1 addition & 0 deletions packages/repco-core/test/bench/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function createItem(i: number) {
contentUrl: '',
originalLanguages: {},
removed: false,
subtitle: {},
},
}
return item
Expand Down
1 change: 1 addition & 0 deletions packages/repco-core/test/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class TestDataSource extends BaseDataSource implements DataSource {
contentUrl: '',
originalLanguages: {},
removed: false,
subtitle: {},
},
headers: { EntityUris: ['urn:test:content:1'] },
}
Expand Down
2 changes: 1 addition & 1 deletion packages/repco-prisma/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ model ContentItem {
uid String @id @unique /// @zod.refine(imports.isValidUID)
revisionId String @unique
title Json @default("{}")
subtitle String?
subtitle Json?
pubDate DateTime? // TODO: Review this
summary Json?
content Json @default("{}")
Expand Down

0 comments on commit 5db7307

Please sign in to comment.