@xuda.io/drive_module 1.1.1350 → 1.1.1352

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.
Files changed (2) hide show
  1. package/index.mjs +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2098,14 +2098,16 @@ export const getExtensionFromUrl = function (imageUrl) {
2098
2098
  };
2099
2099
 
2100
2100
  export const get_user_drive_file = async function (uid, contact_id) {
2101
+ const account_module = await import(`${module_path}/account_module/index.mjs`);
2101
2102
  const app_id = await account_module.get_account_default_project_id(uid);
2102
- const contact_ret = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
2103
+ const contact_ret = await db_module.get_app_couch_doc_native(app_id, contact_id);
2103
2104
  return contact_ret;
2104
2105
  };
2105
2106
 
2106
2107
  export const save_user_drive_file = async function (uid, contact_doc) {
2108
+ const account_module = await import(`${module_path}/account_module/index.mjs`);
2107
2109
  const app_id = await account_module.get_account_default_project_id(uid);
2108
- const contact_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_doc);
2110
+ const contact_ret = await db_module.save_app_couch_doc(app_id, contact_doc);
2109
2111
  return contact_ret;
2110
2112
  };
2111
2113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1350",
3
+ "version": "1.1.1352",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {