src/utils/skynet-ops.js
// Reads related data from sky db.
Reads related data from sky db.
Reads related data from sky db .
async function readJsonFromSkyDB(dataKey) {
    try {
        const res = await skynetClient.db.getJSON(SKAPP_PUBLIC_KEY, dataKey);
        console.debug(`Reading JSON from SkyDB():\n\tdataKey=${dataKey}\n\t->res=${JSON.stringify(res)}`);
        return res;
    } catch (e) {
        console.error(`Error reading data from SkyDB: ${e.message}`);
    }
}
async function readJsonFromSkyDB ( dataKey ) { try { const res = await skynetClient . db . getJSON ( SKAPP_PUBLIC_KEY , dataKey ) ; console . debug ( ` \n \t ${ dataKey } \n \t ${ JSON . stringify ( res ) } ` ) ; return res ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Reads related data from sky db.
Reads related data from sky db .