Skip to content
代码片段 群组 项目
提交 d45e4a9b 编辑于 作者: Jing Teng's avatar Jing Teng 提交者: Timotej Ecimovic
浏览文件

remove usage of underscore to workaround in-network download issue

上级 82bb4d2d
No related branches found
No related tags found
无相关合并请求
......@@ -38,7 +38,6 @@ const restApi = require('../../src-shared/rest-api.js')
const zclLoader = require('../zcl/zcl-loader.js')
const dbEnum = require('../../src-shared/db-enum.js')
const { StatusCodes } = require('http-status-codes')
const _ = require('underscore')
/**
* HTTP GET: session key values
......@@ -96,13 +95,13 @@ function httpPostCluster(db) {
)
.then((pkgs) => pkgs?.shift()?.id) // default to always picking first package
if (_.isNull(packageId)) {
if (packageId == null) {
throw new Error('Unable to find packageId')
}
let insertDefault = _.isNull(
await queryConfig.selectClusterState(db, endpointTypeId, id, side)
)
let insertDefault = await queryConfig
.selectClusterState(db, endpointTypeId, id, side)
.then((state) => state == null)
await queryConfig.insertOrReplaceClusterState(
db,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册