diff --git a/src/classes/DataLayer/Interface/Sponsor.ts b/src/classes/DataLayer/Interface/Sponsor.ts index 4025473..76233fb 100644 --- a/src/classes/DataLayer/Interface/Sponsor.ts +++ b/src/classes/DataLayer/Interface/Sponsor.ts @@ -1,4 +1,4 @@ -import { Conference, ProgramSession, ProgramSessionEvent, ProgramTrack, TextChat, UserProfile, VideoRoom } from "."; +import { Conference, SponsorContent, UserProfile, VideoRoom } from "."; import { removeNull } from "../../Util"; import * as Schema from "../Schema"; import { PromisesRemapped } from "../WholeSchema"; @@ -84,6 +84,10 @@ export default class Class extends CachedBase implements SchemaT { return this.uniqueRelated("conference"); } + get contents(): Promise> { + return StaticBaseImpl.getAllByField("SponsorContent", "sponsor", this.id, this.conferenceId, true); + } + static get(id: string, conferenceId: string): Promise { return StaticBaseImpl.get(K_str, id, conferenceId); }