diff --git a/services/gunDB/contact-api/schema.js b/services/gunDB/contact-api/schema.js index e7dc0b5b..41adf321 100644 --- a/services/gunDB/contact-api/schema.js +++ b/services/gunDB/contact-api/schema.js @@ -146,6 +146,8 @@ exports.isStoredRequest = item => { const obj = /** @type {StoredRequest} */ (item) if (typeof obj.recipientPub !== 'string') return false if (typeof obj.handshakeAddress !== 'string') return false + if (typeof obj.handshakeAddress !== 'string') return false + if (typeof obj.timestamp !== 'number') return false return true }