@xuda.io/account_module 1.2.1818 → 1.2.1820
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 +11 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3282,7 +3282,17 @@ export const find_contact_query = async function (uid, opt) {
|
|
|
3282
3282
|
};
|
|
3283
3283
|
|
|
3284
3284
|
export const delete_xuda_cache = async function (uid, contact_obj) {
|
|
3285
|
-
const ret = await db_module.find_couch_query('xuda_cache', {
|
|
3285
|
+
const ret = await db_module.find_couch_query('xuda_cache', {
|
|
3286
|
+
selector: {
|
|
3287
|
+
$or: [
|
|
3288
|
+
{
|
|
3289
|
+
key: contact_obj?.business_info?.business_domain || '',
|
|
3290
|
+
},
|
|
3291
|
+
{ key: contact_obj?.business_info?.business_name || '' },
|
|
3292
|
+
{ key: contact_obj.email },
|
|
3293
|
+
],
|
|
3294
|
+
},
|
|
3295
|
+
});
|
|
3286
3296
|
const save_ret = await db_module.save_couch_doc('xuda_cache', doc);
|
|
3287
3297
|
return save_ret;
|
|
3288
3298
|
};
|