cloud content fixes

This commit is contained in:
SPRINX0\prochazka
2025-05-22 13:07:45 +02:00
parent f8081ff09e
commit 5c33579544
6 changed files with 31 additions and 11 deletions

View File

@@ -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');