@xuda.io/account_module 1.2.479 → 1.2.481
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 +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1290,7 +1290,12 @@ export const get_contacts = async function (req) {
|
|
|
1290
1290
|
// doc.notifications = 45;
|
|
1291
1291
|
// doc.online = true;
|
|
1292
1292
|
if (doc.team_req_id) {
|
|
1293
|
-
|
|
1293
|
+
try {
|
|
1294
|
+
const req_doc = await db_module.get_couch_doc_native('xuda_team', doc.team_req_id);
|
|
1295
|
+
doc.connected = req_doc.team_req_stat;
|
|
1296
|
+
} catch (error) {
|
|
1297
|
+
doc.connected = 0;
|
|
1298
|
+
}
|
|
1294
1299
|
}
|
|
1295
1300
|
|
|
1296
1301
|
doc.icon_pattern = get_contact_pattern(doc);
|