size() as catch-all

This commit is contained in:
Daniel Lugo 2020-07-25 10:14:41 -04:00
parent 7b0d3892d5
commit 788e871392

View file

@ -6,6 +6,7 @@ const {
Constants: { ErrorCode },
Schema
} = require('shock-common')
const size = require('lodash/size')
const Key = require('../key')
const Utils = require('../utils')
@ -126,8 +127,8 @@ const onAcceptedRequests = (user, SEA) => {
res(feed)
})
}),
// retry on undefined, might be a false negative
v => typeof v === 'undefined'
// @ts-expect-error
v => size(v) === 0
)
const feedIDExistsOnRecipientsOutgoings =