Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Sep 28, 2023
1 parent 64a5de8 commit 723621d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src-electron/db/query-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const dbMapping = require('./db-mapping.js')
* Returns a cluster name from the cluster ref
*
* @param db
* @param attributeId
* @param clusterRef
* @returns Cluster name
*/
async function selectClusterName(db, clusterRef) {
Expand Down
6 changes: 4 additions & 2 deletions src-electron/db/query-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ async function getForcedExternalStorage(db, attributeId) {
let zcl = await queryPackage.getMetaFile(db, pkgs)
let obj = await fsp.readFile(zcl)
let data = JSON.parse(obj)
let externals = data.attributeAccessInterfaceAttributes
let lists = data.listsUseAttributeAccessInterface
let externals = data?.attributeAccessInterfaceAttributes
let lists = data?.listsUseAttributeAccessInterface
let forcedExternal = { externals, lists }
return forcedExternal
}
Expand Down Expand Up @@ -72,6 +72,8 @@ async function computeStorage(
storageOption = dbEnum.storageOption.external
} else if (storagePolicy == dbEnum.storagePolicy.any) {
storageOption = dbEnum.storageOption.ram
} else {
throw 'check storage policy'
}
}
attributeName = await queryAttribute.selectAttributeName(db, attributeId)
Expand Down

0 comments on commit 723621d

Please sign in to comment.