@xuda.io/drive_module 1.1.1458 → 1.1.1460
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -757,7 +757,7 @@ export const update_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
case 'user': {
|
|
760
|
-
ref = uid;
|
|
760
|
+
ref = await get_account_default_project_id(uid);
|
|
761
761
|
doc.bucket[`${process.env.XUDA_HOSTNAME}`] = await upload_file_to_spaces(tempPath, uid, drive_type, file_name);
|
|
762
762
|
save_ret = await save_user_drive_file(uid, doc);
|
|
763
763
|
break;
|
|
@@ -1349,7 +1349,7 @@ export const upload_drive_file = async (req, job_id, headers = {}, file_obj) =>
|
|
|
1349
1349
|
break;
|
|
1350
1350
|
}
|
|
1351
1351
|
case 'user': {
|
|
1352
|
-
ref = uid;
|
|
1352
|
+
ref = await get_account_default_project_id(uid);
|
|
1353
1353
|
file_name = 'drv_' + ref + '_' + (await _common.xuda_get_uuid(drive_type)) + ext;
|
|
1354
1354
|
|
|
1355
1355
|
doc.server_file_name = file_name;
|