Skip to content
代码片段 群组 项目
未验证 提交 f711dcbf 编辑于 作者: paulr34's avatar paulr34 提交者: GitHub
浏览文件

bug fix - duplicating endpoints (#1287)

* bug fix - duplicating endpoints

* session partition reference needs to be what is selected in the query
上级 06d14282
No related branches found
No related tags found
无相关合并请求
......@@ -54,8 +54,7 @@ async function selectEndpointTypeAttributesByEndpointTypeRefAndClusterRef(
INCLUDED_REPORTABLE,
MIN_INTERVAL,
MAX_INTERVAL,
REPORTABLE_CHANGE,
API_MATURITY
REPORTABLE_CHANGE
from
ENDPOINT_TYPE_ATTRIBUTE
where
......
......@@ -701,7 +701,6 @@ async function duplicateEndpointType(db, endpointTypeId) {
ENDPOINT_TYPE_DEVICE.ENDPOINT_TYPE_REF = ?`,
[endpointTypeId]
)
let newEndpointTypeId = 0
if (endpointTypeDeviceInfo && endpointTypeDeviceInfo.length > 0) {
// Enter into the endpoint_type table
......@@ -710,7 +709,7 @@ async function duplicateEndpointType(db, endpointTypeId) {
`INSERT INTO ENDPOINT_TYPE (SESSION_PARTITION_REF, NAME)
VALUES (?, ?)`,
[
endpointTypeDeviceInfo[0].SESSION_PARTITION_REF,
endpointTypeDeviceInfo[0].SESSION_PARTITION_ID,
endpointTypeDeviceInfo[0].NAME,
]
)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册