@xuda.io/drive_module 1.1.563 → 1.1.564
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 +5 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1553,21 +1553,16 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1553
1553
|
|
|
1554
1554
|
if (await fs_module.file_exists(target_file)) {
|
|
1555
1555
|
return {
|
|
1556
|
-
code: -
|
|
1556
|
+
code: -764,
|
|
1557
1557
|
data: "file exist",
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
doc.app_id_reference = ref;
|
|
1566
|
-
|
|
1567
|
-
doc._id = file_name;
|
|
1561
|
+
return {
|
|
1562
|
+
code: 764,
|
|
1563
|
+
data: "ok",
|
|
1564
|
+
};
|
|
1568
1565
|
|
|
1569
|
-
save_ret = await db_module.save_app_couch_doc(ref, doc);
|
|
1570
|
-
misc_module.rsync_drive_resources_to_remote_servers("studio", app_id);
|
|
1571
1566
|
break;
|
|
1572
1567
|
}
|
|
1573
1568
|
case "workspace": {
|