@xuda.io/account_module 1.2.371 → 1.2.373
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1192,9 +1192,11 @@ export const get_contacts = async function (req) {
|
|
|
1192
1192
|
const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1193
1193
|
|
|
1194
1194
|
for await (let doc of contacts_ret.data.docs) {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
if (doc.contact_uid) {
|
|
1196
|
+
const account_ret = await get_account_name({ uid_query: doc.contact_uid });
|
|
1197
|
+
if (account_ret.code < 0) {
|
|
1198
|
+
continue; // throw new Error(`account ${contact_uid} not found`);
|
|
1199
|
+
}
|
|
1198
1200
|
}
|
|
1199
1201
|
}
|
|
1200
1202
|
|