correct schema

This commit is contained in:
Daniel Lugo 2020-01-29 17:21:57 -04:00
parent 8513493176
commit 29ef6eceba

View file

@ -146,6 +146,8 @@ exports.isStoredRequest = item => {
const obj = /** @type {StoredRequest} */ (item) const obj = /** @type {StoredRequest} */ (item)
if (typeof obj.recipientPub !== 'string') return false if (typeof obj.recipientPub !== 'string') return false
if (typeof obj.handshakeAddress !== '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 return true
} }