Skip to content

Commit

Permalink
fix(qs-license): Correct license type names written to InfluxDB when …
Browse files Browse the repository at this point in the history
…releasing QS licenses

Fixes #1094
  • Loading branch information
Göran Sander committed Apr 17, 2024
1 parent 9c70e56 commit 1cd59f2
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 1cd59f2

Please sign in to comment.