@xuda.io/account_module 1.2.1635 → 1.2.1636
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 +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3046,6 +3046,8 @@ export const find_contact_query = async function (uid, opt) {
|
|
|
3046
3046
|
export const save_xuda_cache = async function (uid, docType, key, file, metadata = {}) {
|
|
3047
3047
|
if (!key || typeof key !== 'string') return null;
|
|
3048
3048
|
|
|
3049
|
+
const cache = await get_xuda_cache(uid, docType, key);
|
|
3050
|
+
|
|
3049
3051
|
let doc = {
|
|
3050
3052
|
_id: await _common.xuda_get_uuid('cache'),
|
|
3051
3053
|
key: key.toLowerCase().trim(),
|