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

@@ -5,6 +5,7 @@ const {
callCloudApiGet,
callCloudApiPost,
getCloudFolderEncryptor,
getCloudContent,
} = require('../utility/cloudIntf');
const connections = require('./connections');
const socket = require('../utility/socket');
@@ -48,8 +49,8 @@ module.exports = {
getContent_meta: true,
async getContent({ folid, cntid }) {
const { content, name, type } = await callCloudApiGet(`content/${folid}/${cntid}`);
return { content, name, type };
const resp = await getCloudContent(folid, cntid);
return resp;
},
putContent_meta: true,