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

Remove a DB reference ID from the export.

上级 9ac6d25b
No related branches found
No related tags found
无相关合并请求
......@@ -87,11 +87,11 @@ async function exportEndpointTypes(db, sessionId) {
return Promise.all(promises)
.then(() => queryImpExp.exportEndpoints(db, sessionId, endpointTypes))
.then((endpoints) => {
return Promise.resolve(endpoints)
})
.then((endpoints) => {
endpointTypes.forEach((ep) => {
delete ep.endpointTypeId
endpointTypes.forEach((ept) => {
delete ept.endpointTypeId
})
endpoints.forEach((ep) => {
delete ep.endpointTypeRef
})
return { endpointTypes: endpointTypes, endpoints: endpoints }
})
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册