@xuda.io/drive_module 1.1.565 → 1.1.566
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 +2 -21
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1558,11 +1558,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
return {
|
|
1562
|
-
code: 764,
|
|
1563
|
-
data: "ok",
|
|
1564
|
-
};
|
|
1565
|
-
|
|
1566
1561
|
break;
|
|
1567
1562
|
}
|
|
1568
1563
|
case "workspace": {
|
|
@@ -1576,26 +1571,12 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1576
1571
|
});
|
|
1577
1572
|
if (workspace_drive_res.docs.length) {
|
|
1578
1573
|
return {
|
|
1579
|
-
code: -
|
|
1580
|
-
data: "file
|
|
1574
|
+
code: -764,
|
|
1575
|
+
data: "file exist",
|
|
1581
1576
|
duplicates: workspace_drive_res.docs,
|
|
1582
1577
|
};
|
|
1583
1578
|
}
|
|
1584
1579
|
|
|
1585
|
-
doc.bucket = {
|
|
1586
|
-
[`${process.env.XUDA_HOSTNAME}`]: await upload_file_to_spaces(
|
|
1587
|
-
tempPath,
|
|
1588
|
-
ref,
|
|
1589
|
-
drive_type,
|
|
1590
|
-
file_name
|
|
1591
|
-
),
|
|
1592
|
-
};
|
|
1593
|
-
doc._id = file_name;
|
|
1594
|
-
save_ret = await db_module.save_app_couch_doc(
|
|
1595
|
-
await _common.get_project_app_id(req.app_id),
|
|
1596
|
-
doc
|
|
1597
|
-
);
|
|
1598
|
-
misc_module.rsync_drive_resources_to_remote_servers("workspace", app_id);
|
|
1599
1580
|
break;
|
|
1600
1581
|
}
|
|
1601
1582
|
case "user": {
|