@xuda.io/account_module 1.2.1264 → 1.2.1266
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/index.mjs +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2191,7 +2191,7 @@ export const get_contacts = async function (req) {
|
|
|
2191
2191
|
try {
|
|
2192
2192
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2193
2193
|
if (_id) {
|
|
2194
|
-
let data = await
|
|
2194
|
+
let data = {code,34,data:await get_contact(uid, _id)};
|
|
2195
2195
|
return data;
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
@@ -2326,7 +2326,9 @@ export const get_contacts = async function (req) {
|
|
|
2326
2326
|
total_docs: shared_from.total_docs + requests_from.total_docs + requests_to.total_docs + contact_docs.total_docs,
|
|
2327
2327
|
},
|
|
2328
2328
|
};
|
|
2329
|
-
} catch (
|
|
2329
|
+
} catch (err) {
|
|
2330
|
+
return { code: -34, data: err.message };
|
|
2331
|
+
}
|
|
2330
2332
|
};
|
|
2331
2333
|
|
|
2332
2334
|
export const archive_contact = async function (req) {
|