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

Commit

Permalink
fix: Add Sponsor.contents to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNutting committed Nov 4, 2020
1 parent b6ca769 commit cbb41c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/classes/DataLayer/Interface/Sponsor.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -84,6 +84,10 @@ export default class Class extends CachedBase<K> implements SchemaT {
return this.uniqueRelated("conference");
}

get contents(): Promise<Array<SponsorContent>> {
return StaticBaseImpl.getAllByField("SponsorContent", "sponsor", this.id, this.conferenceId, true);
}

static get(id: string, conferenceId: string): Promise<Class | null> {
return StaticBaseImpl.get(K_str, id, conferenceId);
}
Expand Down

0 comments on commit cbb41c5

Please sign in to comment.