@xuda.io/drive_module 1.1.1200 → 1.1.1201
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.js +3 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -517,10 +517,9 @@ exports.delete_drive_files = async function (req, job_id, headers) {
|
|
|
517
517
|
await module.exports.delete_file_from_bucket(doc.bucket);
|
|
518
518
|
} else {
|
|
519
519
|
const { data: app_obj } = await db_module.get_app_obj(app_id);
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}
|
|
520
|
+
|
|
521
|
+
const host = `root@${app_obj.app_hosting_server.ip}`;
|
|
522
|
+
await _utils.run_ssh_script(`scp ${tempPath} ${host}:/var/xuda/workspace_drive/${file_name}; `);
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
525
|
|