size() as catch-all
This commit is contained in:
parent
7b0d3892d5
commit
788e871392
1 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ const {
|
||||||
Constants: { ErrorCode },
|
Constants: { ErrorCode },
|
||||||
Schema
|
Schema
|
||||||
} = require('shock-common')
|
} = require('shock-common')
|
||||||
|
const size = require('lodash/size')
|
||||||
|
|
||||||
const Key = require('../key')
|
const Key = require('../key')
|
||||||
const Utils = require('../utils')
|
const Utils = require('../utils')
|
||||||
|
|
@ -126,8 +127,8 @@ const onAcceptedRequests = (user, SEA) => {
|
||||||
res(feed)
|
res(feed)
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
// retry on undefined, might be a false negative
|
// @ts-expect-error
|
||||||
v => typeof v === 'undefined'
|
v => size(v) === 0
|
||||||
)
|
)
|
||||||
|
|
||||||
const feedIDExistsOnRecipientsOutgoings =
|
const feedIDExistsOnRecipientsOutgoings =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue