From 29ef6eceba869622d00ae12a9752be8b28ddf467 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 29 Jan 2020 17:21:57 -0400 Subject: [PATCH] correct schema --- services/gunDB/contact-api/schema.js | 2 ++ 1 file changed, 2 insertions(+) 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 }