@byted-apaas/server-sdk-node 1.1.22-beta.0 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/context/db/impl/object.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ class _KObjectSync {
|
|
|
70
70
|
}
|
|
71
71
|
// v1 v2 接口只支持 number 类型
|
|
72
72
|
if (typeof recordOrRecordID === 'string') {
|
|
73
|
-
throw new server_common_node_1.exceptions.InvalidParamError('
|
|
73
|
+
throw new server_common_node_1.exceptions.InvalidParamError('_id must be number');
|
|
74
74
|
}
|
|
75
75
|
let recordID;
|
|
76
76
|
// 用户直接传入 record id 来进行删除的情况
|
|
@@ -139,7 +139,7 @@ class _KObjectSync {
|
|
|
139
139
|
}
|
|
140
140
|
// v1 v2 接口只支持 number 类型
|
|
141
141
|
if (typeof _idOrRecordMap === 'string') {
|
|
142
|
-
throw new server_common_node_1.exceptions.InvalidParamError('
|
|
142
|
+
throw new server_common_node_1.exceptions.InvalidParamError('_id must be number');
|
|
143
143
|
}
|
|
144
144
|
// record 必须包含 _id
|
|
145
145
|
let record;
|