Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(qs-license): Correct license type names written to InfluxDB when … #1095

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib/qliksense_license.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function licenseReleaseProfessional(config, logger, qrsInstance, neverRele
// If the user is not in the neverReleaseUsers array, and the days since last use is greater than the release threshold, release the license
if (
!doNotRelease &&
daysSinceLastUse > config.get('Butler.qlikSenseLicense.licenseRelease.licenseType.professional.releaseThresholdDays')
daysSinceLastUse >= config.get('Butler.qlikSenseLicense.licenseRelease.licenseType.professional.releaseThresholdDays')
) {
releaseProfessional.push({
licenseId: license.id,
Expand Down Expand Up @@ -131,7 +131,7 @@ async function licenseReleaseProfessional(config, logger, qrsInstance, neverRele
) {
// eslint-disable-next-line no-await-in-loop
await postQlikSenseLicenseReleasedToInfluxDB({
licenseType: 'professional_access',
licenseType: 'professional',
licenseId: licenseRelease.licenseId,
userDir: licenseRelease.userDir,
userId: licenseRelease.userId,
Expand Down Expand Up @@ -181,7 +181,7 @@ async function licenseReleaseAnalyzer(config, logger, qrsInstance, neverReleaseU
// If the user is not in the neverReleaseUsers array, and the days since last use is greater than the release threshold, release the license
if (
!doNotRelease &&
daysSinceLastUse > config.get('Butler.qlikSenseLicense.licenseRelease.licenseType.analyzer.releaseThresholdDays')
daysSinceLastUse >= config.get('Butler.qlikSenseLicense.licenseRelease.licenseType.analyzer.releaseThresholdDays')
) {
releaseAnalyzer.push({
licenseId: license.id,
Expand Down Expand Up @@ -220,7 +220,7 @@ async function licenseReleaseAnalyzer(config, logger, qrsInstance, neverReleaseU
) {
// eslint-disable-next-line no-await-in-loop
await postQlikSenseLicenseReleasedToInfluxDB({
licenseType: 'analyzer_access',
licenseType: 'analyzer',
licenseId: licenseRelease.licenseId,
userDir: licenseRelease.userDir,
userId: licenseRelease.userId,
Expand Down