Skip to content
Snippets Groups Projects
Commit fece8812 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

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

parent 7f7ccfab
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment