INNER CODE UNIT · JavaScript
escapeClone
immers-space/activitypub-express · store/index.js:6
function escapeClone (obj) {
return escape(merge({}, obj))
}
const localUserQuery = { type: 'Person', '_meta.privateKey': { $exists: true } }
class ApexStore extends IApexStore {
constructor () {
super()
this.projection = { _id: 0, _meta: 0 }
this.metaProj = { _id: 0 }
}
async deliveryEnqueue (actorId, body, addresses, signingKey) {
if (!addresses || !addresses.length) return
if (!Array.isArray(addresses)) { addresses = [addresses] }
const docs = addresses.map(address => ({
address,
actorId,