Commit fece8812 authored by Cédric Moreau's avatar Cédric Moreau

[fix] `willMembers` was broken (and `members` module as well for pending certs)

parent 7f7ccfab
......@@ -134,7 +134,14 @@ export class DataFinder {
@MonitorExecutionTime()
getUidOfPub(pub: string): Promise<{ uid: string }[]> {
return this.getFromCacheOrDB('getUidOfPub', pub, () => this.iindex.getFullFromPubkey(pub))
return this.getFromCacheOrDB('getUidOfPub', pub, async () => {
const entry = await this.iindex.getFullFromPubkey(pub)
if (!entry.uid) {
// Not found
return []
}
return [entry]
})
}
@MonitorExecutionTime()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment