Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
fix: Add quick accessor for ProgramItem.feedId
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNutting committed Nov 11, 2020
1 parent 1c75229 commit bc269fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/classes/DataLayer/Interface/ProgramItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export default class Class extends CachedBase<K> implements SchemaT {
get feed(): Promise<ContentFeed | undefined> {
return this.uniqueRelated("feed").catch(() => undefined);
}

get feedId(): string | undefined {
return this.data.feed;
}

get attachments(): Promise<ProgramItemAttachment[]> {
return StaticBaseImpl.getAllByField("ProgramItemAttachment", "programItem", this.id, this.conferenceId);
Expand Down

0 comments on commit bc269fe

Please sign in to comment.