Skip to content

Commit

Permalink
fixing 1 CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Sep 28, 2023
1 parent 7ba59b5 commit 50ff449
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src-electron/db/query-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
const dbApi = require('./db-api.js')
const dbEnum = require('../../src-shared/db-enum.js')
const fs = require('fs')
const { default: cluster } = require('cluster')
const fsp = fs.promises

async function selectClusterName(db, clusterRef) {
Expand Down Expand Up @@ -106,18 +107,18 @@ async function checkStorage(
storageOption = dbEnum.storageOption.ram
}
}
if (attributeId) {
attributeName = await selectAttributeName(db, attributeId)
attributeName = await selectAttributeName(db, attributeId)
if (attribute.type) {
if (forcedExternal.lists == true && attribute.type == 'array') {
storageOption = dbEnum.storageOption.external
}
if (
forcedExternal.externals &&
forcedExternal.externals[clusterName] &&
forcedExternal.externals[clusterName].includes(attributeName)
) {
storageOption = dbEnum.storageOption.external
}
}
if (
forcedExternal.externals &&
forcedExternal.externals[clusterName] &&
forcedExternal.externals[clusterName].includes(attributeName)
) {
storageOption = dbEnum.storageOption.external
}
return storageOption
}
Expand Down

0 comments on commit 50ff449

Please sign in to comment.