Skip to content

Commit

Permalink
fix: remove debug lines that spam logs (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo authored Apr 20, 2021
1 parent 07d37d2 commit 9059307
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/src/utils/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ const filterAppsBySpecificDhis2Version = (apps, dhis2Version) => {
const filteredApps = []

const dhis2Semver = semver.coerce(dhis2Version)
debug('dhis2Semver', dhis2Semver)

for (let i = 0, n = apps.length; i < n; ++i) {
const appRow = apps[i]

const maxVersion = semver.coerce(appRow.max_dhis2_version)
debug('maxVersion', maxVersion)

const maxVersionValid = semver.valid(maxVersion)
debug('maxVersionValid', maxVersionValid)

const minVersion = semver.coerce(appRow.min_dhis2_version)
debug('minVersion', minVersion)

if (maxVersionValid) {
const maxPatch = maxVersion.patch === 0 ? '*' : maxVersion.patch
Expand Down

0 comments on commit 9059307

Please sign in to comment.