Skip to content

Commit f5a38eb

Browse files
authored
fix handling of "" as a retention period (#11443)
1 parent d421072 commit f5a38eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

connectors/src/connectors/gong/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ export class GongConnectorManager extends BaseConnectorManager<null> {
322322
? parseInt(configValue, 10)
323323
: null;
324324

325-
if (!Number.isFinite(retentionPeriodDays)) {
325+
if (
326+
retentionPeriodDays !== null &&
327+
!Number.isFinite(retentionPeriodDays)
328+
) {
326329
logger.error(
327330
{
328331
connectorId: connector.id,

0 commit comments

Comments
 (0)