@xuda.io/drive_module 1.1.906 → 1.1.908
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -420,7 +420,7 @@ exports.get_drive_files = async function (req) {
|
|
|
420
420
|
const get_studio_files = async function () {
|
|
421
421
|
if (search_string) {
|
|
422
422
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
423
|
-
opt.selector.docType = "
|
|
423
|
+
opt.selector.docType = "studio_drive";
|
|
424
424
|
const ret = await db_module.find_app_couch_query(app_id, opt);
|
|
425
425
|
|
|
426
426
|
const file_doc = await db_module.get_app_couch_doc(
|
|
@@ -1829,6 +1829,7 @@ exports.run_drive_pending_ocr = async function (req) {
|
|
|
1829
1829
|
selector: { docType: "user_drive", ocr_stat: 1, stat: 3 },
|
|
1830
1830
|
limit: 1,
|
|
1831
1831
|
};
|
|
1832
|
+
|
|
1832
1833
|
const user_drive_res = await db_module.find_couch_query("xuda_drive", opt);
|
|
1833
1834
|
for await (let doc of user_drive_res.docs) {
|
|
1834
1835
|
await ocr_drive_file(doc);
|
|
@@ -1859,6 +1860,7 @@ exports.run_drive_pending_ocr = async function (req) {
|
|
|
1859
1860
|
|
|
1860
1861
|
var app_res = await db_module.find_couch_query("xuda_master", app_opt);
|
|
1861
1862
|
|
|
1863
|
+
opt.selector.docType = "workspace__drive";
|
|
1862
1864
|
for (let app of app_res.docs) {
|
|
1863
1865
|
const app_drive_res = await db_module.find_app_couch_query(app._id, opt);
|
|
1864
1866
|
for await (let doc of app_drive_res.docs) {
|