mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 21:46:00 +00:00
cloud content fixes
This commit is contained in:
@@ -425,12 +425,9 @@ module.exports = {
|
||||
|
||||
const cloudMatch = conid.match(/^cloud\:\/\/(.+)\/(.+)$/);
|
||||
if (cloudMatch) {
|
||||
const cloud = require('./cloud');
|
||||
const { content } = await cloud.getContent({ folid: cloudMatch[1], cntid: cloudMatch[2] });
|
||||
return {
|
||||
...JSON.parse(content),
|
||||
_id: conid,
|
||||
};
|
||||
const { loadCachedCloudConnection } = require('../utility/cloudIntf');
|
||||
const conn = await loadCachedCloudConnection(cloudMatch[1], cloudMatch[2]);
|
||||
return conn;
|
||||
}
|
||||
|
||||
const storage = require('./storage');
|
||||
|
||||
Reference in New Issue
Block a user