src/utils/skynet-ops.js
// Writes comments of a proposal to SkyDB.
Writes comments of a proposal to SkyDB.
Writes comments of a proposal to SkyDB .
async function writeProposalCommentsToSkyDB(proposalComments) {
    try {
        const res = await writeJsonToSkyDB(SKAPP_DATA_KEY_COMMENTS, proposalComments);
        await recordInteraction(res.dataLink, 'commentedAction'); 
        return res;
    } catch (e) {
        console.error(`Error while handling comment: ${e.message}`);
    }
}
async function writeProposalCommentsToSkyDB ( proposalComments ) { try { const res = await writeJsonToSkyDB ( SKAPP_DATA_KEY_COMMENTS , proposalComments ) ; await recordInteraction ( res . dataLink , 'commentedAction' ) ; return res ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Writes comments of a proposal to SkyDB.
Writes comments of a proposal to SkyDB .
// Tell contentRecord that we commented a proposal // TODO move to centralized const file.