Skip to content

Commit cd0b688

Browse files
committed
feat: raise pairing session slot cap to 20
1 parent 735c7e6 commit cd0b688

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/bot/__tests__/requestPairingSession.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('requestPairingSession', () => {
101101
);
102102
});
103103

104-
it('should not exceed the 7-slot cap', async () => {
104+
it('should not exceed the slot cap', async () => {
105105
const client = buildMockWebClient();
106106

107107
const stateValues: Record<string, any> = {
@@ -113,7 +113,7 @@ describe('requestPairingSession', () => {
113113
},
114114
},
115115
};
116-
for (let i = 1; i <= 7; i++) {
116+
for (let i = 1; i <= 20; i++) {
117117
stateValues[`pairing-slot-${i}-date`] = {
118118
[`pairing-slot-${i}-date`]: { selected_date: null },
119119
};
@@ -130,7 +130,7 @@ describe('requestPairingSession', () => {
130130
body: {
131131
view: {
132132
id: 'view-id-1',
133-
private_metadata: JSON.stringify({ slotCount: 7, languages: ['Python'] }),
133+
private_metadata: JSON.stringify({ slotCount: 20, languages: ['Python'] }),
134134
state: { values: stateValues },
135135
},
136136
} as any,

src/bot/requestPairingSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { pairingRequestService } from '@/services/PairingRequestService';
1313
import { determineExpirationTime } from '@utils/reviewExpirationUtils';
1414
import { PairingSession, PairingSlot, PendingPairingTeammate } from '@models/PairingSession';
1515

16-
const MAX_SLOTS = 7;
16+
const MAX_SLOTS = 20;
1717

1818
interface ModalMeta {
1919
slotCount: number;

0 commit comments

Comments
 (0)