@xuda.io/drive_module 1.1.1361 → 1.1.1362
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 +10 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2100,15 +2100,21 @@ export const getExtensionFromUrl = function (imageUrl) {
|
|
|
2100
2100
|
export const get_user_drive_file = async function (uid, filename) {
|
|
2101
2101
|
const account_module = await import(`${module_path}/account_module/index.mjs`);
|
|
2102
2102
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2103
|
-
const
|
|
2104
|
-
return
|
|
2103
|
+
const drive_ret = await db_module.get_app_couch_doc(app_id, filename);
|
|
2104
|
+
return drive_ret;
|
|
2105
2105
|
};
|
|
2106
2106
|
|
|
2107
2107
|
export const save_user_drive_file = async function (uid, drive_doc) {
|
|
2108
2108
|
const account_module = await import(`${module_path}/account_module/index.mjs`);
|
|
2109
2109
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2110
|
+
const save_ret = await db_module.save_app_couch_doc(app_id, drive_doc);
|
|
2111
|
+
return save_ret;
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2114
|
+
export const find_contact_query = async function (uid, opt) {
|
|
2115
|
+
const app_id = await get_account_default_project_id(uid);
|
|
2116
|
+
const ret = await db_module.find_app_couch_query(app_id, opt);
|
|
2117
|
+
return ret;
|
|
2112
2118
|
};
|
|
2113
2119
|
|
|
2114
2120
|
function getExtensionFromString(str) {
|