Skip to content

Commit

Permalink
fix: max list was 999 instead of 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldrummerj committed Jan 17, 2025
1 parent 2f994be commit 8e88ddf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/actions/action-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function GetActionsUsers(instance: InstanceBaseExt<ZoomConfig>): {
label: string
}[] = []

for (let index = 1; index < 1000; index++) {
for (let index = 1; index <= 1000; index++) {
CHOICES_PARTICIPANT.push({ id: index.toString(), label: `Participant ${index}` })
}

Expand Down
2 changes: 1 addition & 1 deletion src/actions/action-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getChoicePositions = (): {
label: string
}[] => {
const result = []
for (let index = 1; index < 1000; index++) {
for (let index = 1; index <= 1000; index++) {
result.push({ id: index.toString(), label: `Position ${index}` })
}

Expand Down
8 changes: 4 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export const GetConfigFields = (): SomeCompanionConfigField[] => {
id: 'pulling',
label: 'Sync iso configuration time in seconds (only for ZoomISO)',
choices: [
{ id: 1000, label: 'Fast (1000msec)' },
{ id: 2500, label: 'Medium (2500msec)' },
{ id: 5000, label: 'Slow (5000msec)' },
{ id: 60000, label: 'Extra Slow (10000msec)' },
{ id: 1000, label: 'Fast (1 second)' },
{ id: 2500, label: 'Medium (2.5 seconds)' },
{ id: 5000, label: 'Slow (5 seconds)' },
{ id: 10000, label: 'Extra Slow (10 seconds)' },
],
default: 1000,
width: 6,
Expand Down
2 changes: 1 addition & 1 deletion src/presets/preset-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export function GetPresetsGroups(instance: InstanceBaseExt<ZoomConfig>): Compani
feedbacks: [],
}

for (let position = 1; position < 1000; position++) {
for (let position = 1; position <= 1000; position++) {
if (index == 1 && position > 9) {
break
}
Expand Down
2 changes: 1 addition & 1 deletion src/presets/preset-participants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function GetPresetsListParticipants(instance: InstanceBaseExt<ZoomConfig>
/**
* Select from Participants
*/
for (let index = 1; index < 1000; index++) {
for (let index = 1; index <= 1000; index++) {
const indexFeedbacks: PresetFeedbackDefinition = [
{
feedbackId: FeedbackId.indexBased,
Expand Down
4 changes: 2 additions & 2 deletions src/variables/variable-values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export function updateGroupVariables(
: ''
}

for (let position = 1; position < 1000; position++) {
for (let position = 1; position <= 1000; position++) {
variables[`Group${index}Position${position}`] =
group.users && group.users[position - 1] ? group.users[position - 1].userName : '-'
}
Expand Down Expand Up @@ -246,7 +246,7 @@ export function updateZoomParticipantVariables(
): void {
if (instance.config.enableVariablesForParticipants) {
// Use the participant selection
for (let index = 1; index < 1000; index++) {
for (let index = 1; index <= 1000; index++) {
variables[`Participant${padding(index, 3)}`] = instance.ZoomVariableLink[index - 1]
? instance.ZoomVariableLink[index - 1].userName
: '-'
Expand Down

0 comments on commit 8e88ddf

Please sign in to comment.