@xuda.io/account_module 1.2.1614 → 1.2.1615
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3051,7 +3051,7 @@ export const get_xuda_cache = async function (uid, docType, name, email, return_
|
|
|
3051
3051
|
});
|
|
3052
3052
|
if (ret.docs.length) {
|
|
3053
3053
|
save_cache_hit(ret.docs[0]._id);
|
|
3054
|
-
return ret.docs[0]?.
|
|
3054
|
+
return (return_property ? ret.docs[0]?.[return_property] : ret.docs[0]) ?? null;
|
|
3055
3055
|
}
|
|
3056
3056
|
};
|
|
3057
3057
|
|