@xuda.io/drive_module 1.1.1239 → 1.1.1241
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.mjs +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -24,7 +24,9 @@ console.log('Drive Module loaded...');
|
|
|
24
24
|
const require = createRequire(import.meta.url);
|
|
25
25
|
|
|
26
26
|
// Load Globals
|
|
27
|
-
global._conf =
|
|
27
|
+
global._conf = await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
|
|
28
|
+
with: { type: 'json' },
|
|
29
|
+
});
|
|
28
30
|
|
|
29
31
|
const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.mjs'));
|
|
30
32
|
const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
|
|
@@ -1464,7 +1466,6 @@ export const get_drive_size = async (req) => {
|
|
|
1464
1466
|
};
|
|
1465
1467
|
|
|
1466
1468
|
const upload_file_to_spaces = async (tempPath, ref, drive_type, file_name) => {
|
|
1467
|
-
debugger;
|
|
1468
1469
|
const spacesEndpoint = new S3Client({
|
|
1469
1470
|
endpoint: _conf.storage_bucket[process.env.XUDA_HOSTNAME].endpoint,
|
|
1470
1471
|
region: _conf.storage_bucket[process.env.XUDA_HOSTNAME].region,
|