diff --git a/services/gunDB/rpc/index.js b/services/gunDB/rpc/index.js index 6cffc541..2e6ca811 100644 --- a/services/gunDB/rpc/index.js +++ b/services/gunDB/rpc/index.js @@ -105,7 +105,7 @@ async function deepEncryptIfNeeded(value) { * @returns {Promise} */ const put = async (rawPath, value) => { - const [root, ...path] = rawPath.split('.') + const [root, ...path] = rawPath.split('>') const node = (() => { // eslint-disable-next-line init-declarations @@ -166,7 +166,7 @@ const put = async (rawPath, value) => { */ // eslint-disable-next-line func-style async function set(rawPath, value) { - const [root, ...path] = rawPath.split('.') + const [root, ...path] = rawPath.split('>') const node = (() => { // eslint-disable-next-line init-declarations diff --git a/src/routes.js b/src/routes.js index efa2b99a..5e184349 100644 --- a/src/routes.js +++ b/src/routes.js @@ -3041,7 +3041,7 @@ module.exports = async ( publicKey, publicKeyForDecryption }) => { - const keys = path.split('.') + const keys = path.split('>') const { tryAndWait } = require('../services/gunDB/contact-api/utils') return tryAndWait((gun, user) => { // eslint-disable-next-line no-nested-ternary diff --git a/src/sockets.js b/src/sockets.js index b63d1239..8434b58c 100644 --- a/src/sockets.js +++ b/src/sockets.js @@ -308,7 +308,7 @@ module.exports = ( node = getGun().user(root) } - for (const bit of path.split('.')) { + for (const bit of path.split('>')) { node = node.get(bit) }