提交 305c5f84 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 uni-id-users表的触发器,不支持通过getOne查询的问题

上级 986adc59
## 2.0.14(2023-07-05)
- 修复 uni-id-users表的触发器,不支持通过getOne查询的问题
## 2.0.13(2023-07-03)
- 更新 修改uni-id-users表的触发器,使其在某些情况下部分逻辑无法生效时,只输出日志提示,而不抛出异常。
## 2.0.12(2023-06-02)
......
{
"id": "uni-im",
"displayName": "uni-im",
"version": "2.0.13",
"version": "2.0.14",
"description": "uni-im是云端一体的、全平台的、免费的、开源即时通讯系统",
"keywords": [
"im,即时通讯,客服,聊天"
......
......@@ -23,7 +23,12 @@ async function afterReadAction({
let {
data
} = result
if( !Array.isArray(data) ){
// 说明走了 getOne
data = [data]
}
// 为联查 且为副表时的字段
if (asSecondaryCollection && typeof(data[0]) == "object") {
let foreignKeysObj = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册