Skip to content

Commit

Permalink
add subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator committed Apr 10, 2024
1 parent 80f94d8 commit b068831
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { FollowList } from 'src/app/site/services/model-request-builder';
import { pollModelRequest } from '../polls/polls.subscription';
import { ViewListOfSpeakers, ViewTopic } from './modules';

export const AGENDA_LIST_ITEM_SUBSCRIPTION = `agenda_list`;

export const agendaItemFollow: FollowList<any> = [
{
idField: `list_of_speakers_id`,
Expand Down Expand Up @@ -43,6 +41,8 @@ export const agendaItemFollow: FollowList<any> = [
}
];

export const AGENDA_LIST_ITEM_SUBSCRIPTION = `agenda_list`;

export const getAgendaListSubscriptionConfig: SubscriptionConfigGenerator = (id: Id) => ({
modelRequest: {
viewModelCtor: ViewMeeting,
Expand All @@ -59,6 +59,10 @@ export const getAgendaListSubscriptionConfig: SubscriptionConfigGenerator = (id:
{
idField: `list_of_speakers_id`,
...listOfSpeakersSpeakerCountSubscription
},
{
idField: `submitter_ids`,
fieldset: FULL_FIELDSET
}
]
}
Expand Down

0 comments on commit b068831

Please sign in to comment.