src/utils/skynet-ops.js
// Adds an interaction to content record DAC.
Adds an interaction to content record DAC.
Adds an interaction to content record DAC .
async function recordInteraction(skylink, action) {
    try {
        console.debug(`Recording content interaction:\n\tskylink=${JSON.stringify(skylink)}\n\taction=${JSON.stringify(action)}`);
        return await contentRecord.recordInteraction({
            skylink: skylink,
            metadata: {
                action: action
            }
        });
    } catch (e) {
        console.error(`Error recording content interaction: ${e.message}`);
    }
}
async function recordInteraction ( skylink , action ) { try { console . debug ( ` \n \t ${ JSON . stringify ( skylink ) } \n \t ${ JSON . stringify ( action ) } ` ) ; return await contentRecord . recordInteraction ( { skylink : skylink , metadata : { action : action } } ) ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Adds an interaction to content record DAC.
Adds an interaction to content record DAC .