Skip to content
Snippets Groups Projects
Commit cb5903da authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Small changes

parent ab854cea
No related branches found
No related tags found
1 merge request!1422Optimize response time of `/wot/requirements/:search`
Pipeline #31788 failed
......@@ -219,14 +219,14 @@ export class SqliteIIndex extends SqliteTable<IindexEntry>
@MonitorExecutionTime()
async getOldFromPubkey(pub: string): Promise<OldIindexEntry | null> {
const identities = await this.find(
const entries = await this.find(
"SELECT * FROM iindex WHERE pub = ? order by writtenOn ASC",
[pub]
);
if (!identities.length) {
if (!entries.length) {
return null;
}
return OldTransformers.toOldIindexEntry(reduce(identities));
return OldTransformers.toOldIindexEntry(reduce(entries));
}
@MonitorExecutionTime()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment