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