Skip to content

Commit

Permalink
fix replication in latest pouchdb
Browse files Browse the repository at this point in the history
  • Loading branch information
garbados committed Nov 7, 2024
1 parent a20d694 commit 5edf388
Show file tree
Hide file tree
Showing 3 changed files with 1,248 additions and 2,121 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = {
outgoing: async (doc) => {
// if no crypt, ex: after .removeCrypto(), just return the doc
if (!this._crypt) { return doc }
if (!doc.payload) { return doc }
const decryptedString = await this._crypt.decrypt(doc.payload)
const decrypted = JSON.parse(decryptedString)
for (const key of this._ignore) {
Expand Down
Loading

0 comments on commit 5edf388

Please sign in to comment.