@xuda.io/drive_module 1.1.1062 → 1.1.1064

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.
Files changed (2) hide show
  1. package/index.js +10 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2102,9 +2102,12 @@ exports.compile_javascript_program_in_studio_drive = async function (
2102
2102
  job_id
2103
2103
  ) {
2104
2104
  const { app_id, prog_id } = req;
2105
+ let doc;
2105
2106
  try {
2106
- let { data: doc } = await db_module.get_app_couch_doc(app_id, prog_id);
2107
-
2107
+ const app_ret = await db_module.get_app_couch_doc(app_id, prog_id);
2108
+ if (app_ret.code > 0) {
2109
+ doc = app_ret.data;
2110
+ }
2108
2111
  const studio_drive_script_folder = path.join(
2109
2112
  _conf.studio_drive_path,
2110
2113
  app_id,
@@ -2287,7 +2290,11 @@ export default {
2287
2290
 
2288
2291
  await fs_module.save_file(vite_config, code);
2289
2292
  //////////////////////
2290
-
2293
+ const _utils = require(path.join(
2294
+ process.env.XUDA_HOME,
2295
+ "common",
2296
+ "xuda-cpi-utils.js"
2297
+ ));
2291
2298
  await _utils.run_ssh_script(
2292
2299
  `npm i --prefix ${studio_drive_script_program_folder};`
2293
2300
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1062",
3
+ "version": "1.1.1064",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {