Skip to content

Commit 2bd3c25

Browse files
Update apps/api/src/config/configuration.ts
Co-authored-by: Bruno Grbavac <[email protected]>
1 parent 723e3ad commit 2bd3c25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

apps/api/src/config/configuration.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ const configuration = {
122122
},
123123
audit: {
124124
toolboxRequestsEnabled: getBoolConfig('AUDIT_TOOLBOX_REQUESTS_ENABLED', 'audit.toolboxRequestsEnabled'),
125-
retentionDays: getConfig('AUDIT_LOG_RETENTION_DAYS', 'audit.retentionDays')
126-
? parseInt(getConfig('AUDIT_LOG_RETENTION_DAYS', 'audit.retentionDays'), 10)
127-
: undefined,
125+
retentionDays: getIntConfig('AUDIT_LOG_RETENTION_DAYS', 'audit.retentionDays'),
128126
consoleLogEnabled: getBoolConfig('AUDIT_CONSOLE_LOG_ENABLED', 'audit.consoleLogEnabled'),
129127
publish: {
130128
enabled: getBoolConfig('AUDIT_PUBLISH_ENABLED', 'audit.publish.enabled'),

0 commit comments

Comments
 (0)